implementation of project euler solutions in java