diff --git a/e003.py b/e003.py index 4ef4229..fd29eee 100644 --- a/e003.py +++ b/e003.py @@ -8,5 +8,6 @@ def pfactor(n): p.append(i) return sorted(p, reverse=True) -print 'Prime factors of 600851475143:' -print pfactor(600851475143) +if __name__ == '__main__': + print 'Prime factors of 600851475143:' + print pfactor(600851475143)