Solutions to all the problems on projecteuler.net written in core Java