Most sublime solutions

For questions about problems on the Project Euler web site. No spoilers. Please include the question number in the subject line of your post.

Most sublime solutions

Postby russ » Mon Jun 03, 2013 7:55 am

My first entry would be (not my own):
Code: Select all
sum(set(range(3, 1000, 3) + range(5, 1000, 5)))


I like this one because it uses nothing but builtins and effectively. I just like builtins.

Second would be (not my own):
Code: Select all
from math import factorial as f
f(20*2) / f(20)**2


But this is more a pen and paper solution which requires knowledge of math that you sure don't learn in high school.
russ
 
Posts: 18
Joined: Sat Mar 02, 2013 8:59 am

Return to Project Euler

Who is online

Users browsing this forum: No registered users and 1 guest

cron