feat: Initial commit
This commit is contained in:
11
Laboratorio5/fattorizzazione.py
Normal file
11
Laboratorio5/fattorizzazione.py
Normal file
@@ -0,0 +1,11 @@
|
||||
n = 12345678901234567890 #int(input("Numero: "))
|
||||
|
||||
k = 2
|
||||
|
||||
while n > 1:
|
||||
for x in range(k,n+1):
|
||||
if n % x == 0:
|
||||
print(x)
|
||||
k = x
|
||||
n = int(n/x)
|
||||
break
|
||||
Reference in New Issue
Block a user