Feb-11-2022, 05:36 PM
I made a function that verify if a number is prime, hope that is can help your code to be more tiny
def is_prime(num): mult = [i for i in range(1, num+1) if num % i == 0] if len(mult) == 2 and 1 in mult and num in mult: return True return Falsehttps://gist.github.com/lucasbazan/9a3c4...3431c55532