Project Euler #77: Prime summations