RosettaCodeData/Task/Babbage-problem/Python/babbage-problem-2.py

2 lines
69 B
Python
Raw Permalink Normal View History

2023-07-01 11:58:00 -04:00
print(next(x for x in range(30000) if pow(x, 2, 1000000) == 269696))