def czy_pierwsza(n):
d = 2
while d * d <= n:
if n % d == 0:
return False
d += 1
return True
print(czy_pierwsza(11))
print(czy_pierwsza(99))
CmRlZiBjenlfcGllcndzemEobik6CglkID0gMgoJd2hpbGUgZCAqIGQgPD0gbjoKCQlpZiBuICUgZCA9PSAwOgoJCQlyZXR1cm4gRmFsc2UKCQlkICs9IDEKCXJldHVybiBUcnVlCnByaW50KGN6eV9waWVyd3N6YSgxMSkpCnByaW50KGN6eV9waWVyd3N6YSg5OSkp