fork download
  1. n = 37
  2. print n
  3. a = 0
  4.  
  5. i = 2
  6. while i <= n:
  7. c = pow(i, (n - 1)/2, n)
  8. if c == 1 :
  9. a +=1
  10. print (i, c)
  11. i += 1
  12. print ("col_1", a)
  13.  
  14.  
  15. # your code goes here
Success #stdin #stdout 0.01s 7264KB
stdin
Standard input is empty
stdout
37
(2, 36)
(3, 1)
(4, 1)
(5, 36)
(6, 36)
(7, 1)
(8, 36)
(9, 1)
(10, 1)
(11, 1)
(12, 1)
(13, 36)
(14, 36)
(15, 36)
(16, 1)
(17, 36)
(18, 36)
(19, 36)
(20, 36)
(21, 1)
(22, 36)
(23, 36)
(24, 36)
(25, 1)
(26, 1)
(27, 1)
(28, 1)
(29, 36)
(30, 1)
(31, 36)
(32, 36)
(33, 1)
(34, 1)
(35, 36)
(36, 1)
(37, 0)
('col_1', 17)