Euler 78 attempt 2 - much faster, custom memo