fork download
  1. def check(n):
  2. return (pow(2, n, n) == 2 % n) and (pow(3, n, n) != 3 % n)
  3.  
  4. n = 6444444444444444444444444444444444444444444444444444444445
  5.  
  6. print(check(n))
Success #stdin #stdout 0.03s 63172KB
stdin
Standard input is empty
stdout
False