Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
prime factorizer
#python 3.5.2 def prime_factorization(n): '''returns the prime factorization of a number; author: Elijah Bascuti''' factors=[] i = 2 while n >= i: if n%i == 0: factors.append(i) n = n//i i=2 else: i = i+1 return factors #test the number: print(prime_factorization(250))
run
|
edit
|
history
|
help
0
PVJ-COMP1-1-EQUIPO1
1
Convert String to Lower Case
LinkedList in Python
Hai
Dictionary - count characters
PyEnum
Rhymes child
Contact Class
PyPoly