TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
C# Corner
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Prime Number In Python
Sr Karthiga
Aug 08
2016
Code
719
0
0
facebook
twitter
linkedIn
Reddit
WhatsApp
Email
Bookmark
expand
prime.zip
print(
'!* To Find Prime Number'
)
def Prime_Number():
flag = 1;
n = input(
'Enter the number'
)
for
i in range(2,n):
if
(n%i == 0):
print(
'%d is not a prime number'
%n)
flag = 0;
break
;
if
(flag == 1):
print(
'%d is a prime number'
%n)
Python prime
Prime nuber