p = 29for i in range(0, 20000): if (i * i % p == 6): print(i) break
Standard input is empty
8
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!