The code I posted comes actually from Euler, who found out that the sum
of the infinite chain of natural numbers:

1/(1*1) + 1/(2*2) + 1/(3*3) ....

is exactly (PI*PI)/6

Thus we can calculate PI (using computers calculation power to get
the value of the infinite chain)