Stats
3,334
reputation
1k
reached
2
answers
2
questions
Loading…
About
What happens when you learn python by doing as much of project euler as possible with oneliners.
def nCk(n,k): return int(round(reduce(mul, (float(n-i)/(i+1) for i in range(k)), 1)))
def eul29(): return len(set([a**b for a in range(2, 101) for b in range(2, 101)]))
def eul30():
def fifth(n): return sum([int(i)**5 for i in str(n)])
return sum([fifth(i) for i in range(2,355000) if fifth(i) == i])
def eul56():
return max([sum([int(i) for i in str(a**b)]) for a in range(90,101) for b in range(90,101)])
Biologist by day, decisively not a programmer by night, I swear.
Badges
View all badges
This user doesn’t have any gold badges yet.
12
-
Civic DutyJul 10, 2015
-
EnthusiastJul 24, 2015
-
Good QuestionJul 23, 2015
12
-
Vox PopuliJul 10, 2015
-
SuffrageJun 28, 2015
-
Citizen PatrolJul 12, 2015
Top tags
View all tags
3
Score
3
Posts
75
Posts %
3
Score
3
Posts
75
Posts %
3
Score
2
Posts
50
Posts %
3
Score
2
Posts
50
Posts %
3
Score
1
Posts
25
Posts %
3
Score
1
Posts
25
Posts %
Top posts