Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.10 KB | None | 0 0
  1. def isPrime(x):
  2.   p = 2
  3.   while p * p < x and x % p != 0:
  4.     p += 1
  5.   return x > 1 and p * p > x
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement