Solutions to Project Euler Questions in Java and C#