Versailles : 6km (41/80m) Done !
Monte-Cristo : 18km (111/203m)
Fontainebleau : 75km (271/365m)
Breteuil : 25km (196/203m)
Vincennes : 22km (57/177m)
Versailles : 6km (41/80m) Done !
Monte-Cristo : 18km (111/203m)
Fontainebleau : 75km (271/365m)
Breteuil : 25km (196/203m)
Vincennes : 22km (57/177m)
require 'prime' | |
class Integer | |
# Monkey patch to check if n is palindromic | |
def is_palindrome? | |
self.to_s == self.to_s.reverse | |
end | |
end | |
# Prints the first n palindromic prime int |