import mathprint(2 * 10 ** 6 + 1 + 2 * sum(2 * int(math.sqrt(10 ** 12 - x ** 2)) + 1 for x in range(1, 10 ** 6 + 1)))
Standard input is empty
3141592649625
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!