Project Euler attempts in my hazy recollection of C.