Calculate π to N digits. That's all. :) (really)
N: Number of digits of π to compute
A single line containing N non-space separated digits of π, with no decimal point. Do not round the last digit, just truncate it.
N=800
N=5000
N=10000000
5
31415
Probably need "chudnovsky algorithm".
Comments
Probably need "chudnovsky algorithm".