Click here to Skip to main content
15,917,875 members
Please Sign up or sign in to vote.
1.00/5 (5 votes)
See more:
design a program to check the prime number
Posted

When your subject and your body are identical, that's a good sign that you're not asking a real question. What you meant to say was 'I am lazy, so do my homework for me.'. The answer is no, if you want to pass, you will need to do your own work.
 
Share this answer
 
Here you go:
http://en.wikipedia.org/wiki/Prime_number#Verifying_primality[^]

Pick one of these algorithms and code it up.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900