euler14 old//new. old takes ~1m45s, new takes ~5s