Project Euler

I’ve been doing the Project Euler problems again. They are pretty fascinating. I’ve already solved the first 15 (in Python, of course). Solving the 16th problem would be hard in any language other than Python. The problem is to “find the sum of the digits in 2^1000”. 2^1000 is an enormous number, much to big for a standard int, long, or double datatype. Thankfully Python has arbitrary precision integers out of the box. To see my solution, check out my github.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

Blog at WordPress.com.

Up ↑

%d bloggers like this: