Solving Project Euler's challenges in J