Workarounds for EulerProblems using java