Solutions to project euler and some stuff from my java class