Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function is_prime($n){
- if($n==1)
- return false;
- for($d=2; $d*$d<=$n; $d++){
- if($n%$d==0)
- return false;
- }
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement