Project Euler solutions - in Objective C