This is very inefficient, it may take you 1 hour before you get an accurate estimation of π (so run the project, go do something, then come back 1 hour later).