Solved 437 (in PARI).
Less stupid