Advertisement
kburnik

Logo - Zadatak Prost

Feb 19th, 2013
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. to jeliprost :n
  2. if :n = 1 [op "false]
  3. make "p int :n/2
  4. for [k 2 :p 1] [
  5. if (remainder :n :k) = 0 [op "false]
  6. ]
  7. op "true
  8. end
  9.  
  10. to prost :n
  11. while [not jeliprost :n] [ make "n :n - 1 ]
  12. op :n
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement