Euler7 working but naive, slow