The Python Oracle

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

Become part of the top 3% of the developers by applying to Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Secret Catacombs

--

Chapters
00:00 Question
00:30 Accepted answer (Score 318)
02:04 Answer 2 (Score 72)
04:15 Answer 3 (Score 32)
05:41 Answer 4 (Score 27)
06:57 Thank you

--

Full question
https://stackoverflow.com/questions/6800...

Answer 1 links:
[Project Euler]: http://en.wikipedia.org/wiki/Project_Eul...

Answer 3 links:
[factorint]: http://docs.sympy.org/latest/modules/nth...
[10000000000000079 is a prime]: http://www.javascripter.net/math/calcula...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#python #algorithm #python27 #performance #factorization

#avk47