Posts by Pedro Mello Guimarães • 1 point
1 post
-
0
votes3
answers2240
viewsA: Python libraries to check if a number is prime
I’m still learning python, so to find out if a number is prime I made this program: def calc(num, outro, raiz): if num%outro==0 and outro!=num: return False else: outro = outro+1 if…