Advertisement
Guest User

pastebinforthings.py

a guest
Sep 18th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.38 KB | None | 0 0
  1. def whilethis():
  2.     t = input()
  3.     f = 2
  4.     p = True
  5.     while t > f:
  6.         result = t%f
  7.         if result == 0:
  8.             print f
  9.             f = f+1
  10.             p = False
  11.         else:
  12.             f = f+1
  13.         if t == f:
  14.             print "thats it."
  15.             break
  16.         if p == True:
  17.             print "this is prime bro"
  18.             break
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement