Farz0l1x

Untitled

Oct 2nd, 2022
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.13 KB | None | 0 0
  1. def isPrime(n):
  2.     d = 2
  3.     while d * d <= n:
  4.         if n % d == 0:
  5.             return False
  6.         d += 1
  7.     return True
Add Comment
Please, Sign In to add comment