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

24
Laboratorio4/primi.py Normal file
View File

@@ -0,0 +1,24 @@
import random
primeList = []
def primeListGenerator(upperBound):
global primeList
for i in range(2, upperBound):
isPrime = True
for primeNumber in primeList:
if i % primeNumber == 0:
isPrime = False
break
if isPrime:
primeList.append(i)
n = int(input("Fino a "))
primeListGenerator(n)
for n in primeList:
print(n)