Advertisement
clesiomatias

Primos

Jul 21st, 2022
872
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.26 KB | None | 0 0
  1. n=334567432176589
  2.  
  3. def primo(n):
  4.      if n>2 and n%2!=0:
  5.          for i in range(2,int(n/2)):
  6.              if n%i==0:
  7.                  return False
  8.          return True
  9.      return False    
  10.              
  11.              
  12.    
  13.      
  14.                
  15.    
  16.    
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement