SHARE
TWEET

Untitled

a guest May 15th, 2019 65 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #Finding prime in a range
  2.  
  3. for k in range(rangeOfNum):
  4.     j=0
  5.     i=1
  6.     while i<=k:
  7.         if k%i ==0:
  8.             j+=1
  9.         i+=1
  10.  
  11.     if j==2:
  12.         print(k, end=' ')
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top