Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int isprime(int number){
- int i;
- for(i=3; i<=sqrt(number); i=i+2)
- if(number%i == 0)return 0;
- if(number < 2 || (number > 3 && number%2 == 0)) return 0;
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement