Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/ruby -w
- class Fixnum
- def evenly_divisible?
- 20.downto 11 do |i|
- return false if self % i != 0
- end
- true
- end
- end
- 2520.upto 999999999999999 do |i|
- if i.evenly_divisible?
- break
- puts i
- end
- end
Add Comment
Please, Sign In to add comment