Project Euler memo