feat: Initial commit

This commit is contained in:
2024-03-22 17:01:42 +01:00
parent 954985f39a
commit c343ff6e93
106 changed files with 143428 additions and 1 deletions

View File

@@ -0,0 +1,30 @@
primeList = []
lastIndex = 2
def primeListGenerator():
global primeList, lastIndex
isPrime = True
for primeNumber in primeList:
if lastIndex % primeNumber == 0:
isPrime = False
break
if isPrime:
primeList.append(lastIndex)
lastIndex += 1
n = 12345678901234567890 # int(input("Numero: "))
k = 2
while n > 1:
primeListGenerator()
prime = primeList[-1]
while n % prime == 0:
n = int(n/prime)
print(prime)