Ask
Search
Ask Question
Login
×
×
Welcome back.
and 3 others joined a min ago.
Continue with Google
Continue with email
0
1.6k
views
Write a python program to check if the entered no is prime or not
written
3.6 years ago
by
pedsangini276
•
4.8k
• modified 3.6 years ago
python programming
ADD COMMENT
FOLLOW
SHARE
EDIT
1 Answer
0
183
views
written
3.6 years ago
by
pedsangini276
•
4.8k
Explanation:-
Take a no as an input from the user & store the number in variable number then and pass on this number to a prime function.
Check if the number is greater then 1 if not then show a message representing enter the valid number.
Iterate over the range …
Create a free account to keep reading this post.
and 3 others joined a min ago.
Continue with Google
Continue with email
ADD COMMENT
SHARE
EDIT
Please
log in
to add an answer.
Community
Users
Levels
Badges
Content
All posts
Tags
Dashboard
Company
About
Team
Privacy
Submit question paper solutions and earn money