¡@

Home 

python Programming Glossary: euler

Finding the Maximum Route in a given input [closed]

http://stackoverflow.com/questions/10053540/finding-the-maximum-route-in-a-given-input

a comment by jamylak I realized this problem is similar to Euler 18 but the difference is the representation. The problem in.. but the difference is the representation. The problem in Euler 18 considers a pyramid where as the problem in this question.. this problem can be easily ported to work with Euler 18. Here is the port def enroute triangle neigh lambda n sz..

Project Euler 17

http://stackoverflow.com/questions/12647254/project-euler-17

Euler 17 I've been trying to solve Euler 17 and have been running.. Euler 17 I've been trying to solve Euler 17 and have been running into some trouble. The definition of..

Stuck on Project Euler #3 in python

http://stackoverflow.com/questions/12999706/stuck-on-project-euler-3-in-python

on Project Euler #3 in python The prime factors of 13195 are 5 7 13 and 29... stuck then there are solutions already there Project Euler #3 infinite loop on factorization Project Euler 3 Why does this.. Project Euler #3 infinite loop on factorization Project Euler 3 Why does this method work Project Euler Question 3 Help ..

Python exercises to hone your skills [closed]

http://stackoverflow.com/questions/29578/python-exercises-to-hone-your-skills

share improve this question Python Challenge Project Euler when you answer a question you are able to see and discuss other..

I have a Python list of the prime factors of a number. How do I (pythonically) find all the factors?

http://stackoverflow.com/questions/3643725/i-have-a-python-list-of-the-prime-factors-of-a-number-how-do-i-pythonically-f

find all the factors I'm working on a Project Euler problem which requires factorization of an integer. I can come..

How to write the Fibonacci Sequence in Python

http://stackoverflow.com/questions/494594/how-to-write-the-fibonacci-sequence-in-python

print i My hint is to learn to read what you need. Project Euler google for it will train you to do so P Good luck and have fun..

Python: List vs Dict for look up table

http://stackoverflow.com/questions/513882/python-list-vs-dict-for-look-up-table

help. EDIT 1 Little more info on what I'm trying to do. Euler Problem 92 . I'm making a look up table to see if a value calculated..

How can you profile a Python script?

http://stackoverflow.com/questions/582336/how-can-you-profile-a-python-script

script I've seen a quite a few questions on the Project Euler and other places asking how to time the execution of their solutions...

Speed comparison with Project Euler: C vs Python vs Erlang vs Haskell

http://stackoverflow.com/questions/6964392/speed-comparison-with-project-euler-c-vs-python-vs-erlang-vs-haskell

comparison with Project Euler C vs Python vs Erlang vs Haskell I have taken Problem #12 from.. Erlang vs Haskell I have taken Problem #12 from Project Euler as a programming exercise and to compare my surely not optimal..

Project Euler 5 in Python - How can I optimize my solution?

http://stackoverflow.com/questions/8024911/project-euler-5-in-python-how-can-i-optimize-my-solution

Euler 5 in Python How can I optimize my solution I've recently been.. my solution I've recently been working on Project Euler problems in Python. I am fairly new to Python and still somewhat..

Project Euler #22 Python, 2205 points missing?

http://stackoverflow.com/questions/10493702/project-euler-22-python-2205-points-missing

the total of all the name scores in the file http projecteuler.net problem 22 When I compile my code below I get the answer.. . The correct answer should be 871198282 . import time def euler_22 ## Creates a sorted list of the names in Py_Euler_22.txt.. result sum_letters return result tstart time.time print euler_22 print Run time str time.time tstart I tried to find a program..

Project Euler 17

http://stackoverflow.com/questions/12647254/project-euler-17

sum lengths 10 print Your number is sum python project euler share improve this question Explaining the discrepancy Your.. s. import re return len re.findall r' a zA Z ' s def euler17 return sum letter_count english i for i in range 1 1001 With..

Stuck on Project Euler #3 in python

http://stackoverflow.com/questions/12999706/stuck-on-project-euler-3-in-python

of the number 600851475143 Ok so i am working on project euler problem 3 in python. I am kind of confused. I can't tell if.. number_to_test odds Thank You python math project euler primes share improve this question the number 600851475143..

A Fast Prime Number Sieve in Python

http://stackoverflow.com/questions/16004407/a-fast-prime-number-sieve-in-python

Timing the execution returns python m timeit n10 s import euler euler.sieve_for_primes_to 1000000 10 loops best of 3 19.5 msec.. the execution returns python m timeit n10 s import euler euler.sieve_for_primes_to 1000000 10 loops best of 3 19.5 msec per.. p p n erat2 When run it gives python m timeit n10 s import euler euler.get_primes_erat 1000000 10 loops best of 3 697 msec per..

Find out 20th, 30th, nth prime number. (I'm getting 20th but not 30th?) [Python]

http://stackoverflow.com/questions/1995890/find-out-20th-30th-nth-prime-number-im-getting-20th-but-not-30th-python

have in mind please suggest. Thank You python project euler primes share improve this question There is a nice Sieve..

Fastest way to list all primes below N in python

http://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n-in-python

is leading the race . python optimization math project euler primes share improve this question Warning timeit results..

Python recursive function error: “maximum recursion depth exceeded”

http://stackoverflow.com/questions/2401447/python-recursive-function-error-maximum-recursion-depth-exceeded

way to avoid a recursion limit python recursion project euler share improve this question Recursion is not the most idiomatic..

Python: Invalid Token

http://stackoverflow.com/questions/336181/python-invalid-token

is it throwing an error before the comma python project euler octal share improve this question I think when you start..

I have a Python list of the prime factors of a number. How do I (pythonically) find all the factors?

http://stackoverflow.com/questions/3643725/i-have-a-python-list-of-the-prime-factors-of-a-number-how-do-i-pythonically-f

n 0 y 1 listOfExponents.append y python algorithm project euler factorization share improve this question Instead of a list..

Is there a math nCr function in python? [duplicate]

http://stackoverflow.com/questions/4941753/is-there-a-math-ncr-function-in-python

counting combinations and permutations efficiently Project euler problem in python problem 53 I'm looking to see if built in..

Python: List vs Dict for look up table

http://stackoverflow.com/questions/513882/python-list-vs-dict-for-look-up-table

would a set be better python performance project euler share improve this question Speed Lookups in lists are O..

triangle numbers in python

http://stackoverflow.com/questions/571488/triangle-numbers-in-python

l 499 print a if __name__ '__main__' main python project euler share improve this question Hints what is the formula for..

Generating unique, ordered Pythagorean triplets

http://stackoverflow.com/questions/575117/generating-unique-ordered-pythagorean-triplets

' ' 50 if __name__ '__main__' main python math project euler share improve this question Pythagorean Triples make a good..

Python program to find fibonacci series. More Pythonic way

http://stackoverflow.com/questions/578379/python-program-to-find-fibonacci-series-more-pythonic-way

even i for i in fib if not i 2 print sum even project euler python share improve this question First I'd do fibo as..

How can you profile a Python script?

http://stackoverflow.com/questions/582336/how-can-you-profile-a-python-script

I thought I'd share my solution. python profiling project euler share improve this question Python includes a profiler called.. python m cProfile 1 So all I have to do is run profile euler048.py And I get this 1007 function calls in 0.061 CPU seconds.. 0.061 0.061 string 1 module 1000 0.051 0.000 0.051 0.000 euler048.py 2 lambda 1 0.005 0.005 0.061 0.061 euler048.py 2 module..

What is the most efficient way of finding all the factors of a number in Python?

http://stackoverflow.com/questions/6800193/what-is-the-most-efficient-way-of-finding-all-the-factors-of-a-number-in-python

for a large numbers. python performance algorithm project euler factorization share improve this question def factors n..

How do you check whether a number is divisible by another number (Python)?

http://stackoverflow.com/questions/8002217/how-do-you-check-whether-a-number-is-divisible-by-another-number-python

print n print 'Sum ' print s n n 1 python integer project euler modulus share improve this question You do this using the..

Project Euler 5 in Python - How can I optimize my solution?

http://stackoverflow.com/questions/8024911/project-euler-5-in-python-how-can-i-optimize-my-solution

Thanks in advance to any who can help. python project euler share improve this question Taking the advice of Michael..