Wednesday, June 8, 2011

Project Euler 5 Solution



No optimizing in this one because I was in a hurry. CodeBlocks does the favor of timing execution but XCode doesn't (not in an obvious way that I can see).

This was a simple one so I decided to try doing K&R style brackets. Don't like it.

EDIT: I suppose two things are that I don't need to check odd numbers, and I only need to check 11-20 in the divisors.

No comments:

Post a Comment