Guest User

Untitled

a guest
Jul 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. #!/usr/bin/ruby -w
  2.  
  3. class Fixnum
  4. def evenly_divisible?
  5. 20.downto 11 do |i|
  6. return false if self % i != 0
  7. end
  8.  
  9. true
  10. end
  11. end
  12.  
  13. 2520.upto 999999999999999 do |i|
  14. if i.evenly_divisible?
  15. break
  16. puts i
  17. end
  18. end
Add Comment
Please, Sign In to add comment