Simplified projecteuler answer 54