Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def ePrimo(k):
- primo = 1
- cont = 0
- while k >= primo:
- if k % primo == 0:
- primo = k % primo
- primo = primo + 1
- cont = cont + 1
- if cont == 2:
- print ("maior_primo", k)
- else:
- def maior_primo(x):
- x = 1
- if cont > 2:
- while k >= x:
- x = k % x
- x = x + 1
- cont = cont + 1
- if x == ePrimo:
- print("maior_primo", x)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement