Mathematics, Cryptography, Tech, DevOps.
exponent” that can’t have any common factors between them. So here’s some code to make this up def giveMePrimes(): primeList = list() for num in range(1000,10001): if all(num%i!=0 for i in range(2,int(math.sqrt(num))+1)): primeList.append(num) return primeList This appends the the prime numbers in