mirror of
https://github.com/correl/euler.git
synced 2024-12-17 19:16:11 +00:00
Problem 029
git-svn-id: file:///srv/svn/euler@59 e5f4c3ec-3c0c-11df-b522-21efaa4426b5
This commit is contained in:
parent
d9b2e17675
commit
793812b67b
1 changed files with 10 additions and 0 deletions
10
e029.py
Normal file
10
e029.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
MAX = 100
|
||||
|
||||
numbers = []
|
||||
|
||||
for i in range(2, MAX + 1):
|
||||
for ii in range(2, MAX + 1):
|
||||
n = i**ii
|
||||
if n not in numbers:
|
||||
numbers.append(n)
|
||||
print len(numbers)
|
Loading…
Reference in a new issue