A too slow attempt at the Pi problem.