Advertisement
Guest User

Untitled

a guest
Aug 31st, 2019
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.29 KB | None | 0 0
  1. local even
  2. local odd
  3.  
  4. odd = function (n)
  5.     if n == 1 then return true end
  6.     if n == 2 then return false end
  7.     return even(n-1)
  8. end
  9.  
  10. even = function (n)
  11.     if n == 1 then return false end
  12.     if n == 2 then return true end
  13.     return odd(n-1)
  14. end
  15.  
  16. print(even(1000000000000000000))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement