Posts by Gustavo Silva • 1 point
1 post
-
0
votes6
answers14517
viewsA: How to define the largest prime number within a given number?
I found a way that I imagine to be simple and effective, without using it or things like: def maior_primo(n): div=1 uau=True cont=0 while div <=n and uau: if n%div== 0: cont=cont+1 if cont>=3:…
pythonanswered Gustavo Silva 1