Advertisement
STANAANDREY

primality check py

Jul 19th, 2021
992
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.08 KB | None | 0 0
  1. n = int(input())
  2. print(n > 1 and all(n % d for d in range(2, int(n**.5) + 1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement