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
PyDescript
Help me
Prime number
PyRegCapGroup
MBTI test ITA
PYTHON 3 ÖDEV :)
perform_math.py
My name
числа близнецы
Play