Guest User

Untitled

a guest
Oct 18th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.17 KB | None | 0 0
  1. function isPrime($number) {
  2.     for ($x = $number-1; $x> 1; $x--) {
  3.         if ($number % $x == 0) {
  4.             return false;
  5.         }
  6.     }
  7.  
  8.     return true;
  9. }
Add Comment
Please, Sign In to add comment