From 793812b67b0a052be0402727770d6c265cb7bc6a Mon Sep 17 00:00:00 2001 From: Correl Roush Date: Mon, 3 May 2010 23:42:56 +0000 Subject: [PATCH] Problem 029 git-svn-id: file:///srv/svn/euler@59 e5f4c3ec-3c0c-11df-b522-21efaa4426b5 --- e029.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 e029.py diff --git a/e029.py b/e029.py new file mode 100644 index 0000000..999163a --- /dev/null +++ b/e029.py @@ -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)