Solution in java to http://projecteuler.net/