Skip to content

Instantly share code, notes, and snippets.

Avatar

Dhia Eddine Chouchane dhiachou

View GitHub Profile
View CastlesByBike.md

Versailles : 6km (41/80m) Done !

Monte-Cristo : 18km (111/203m)

Fontainebleau : 75km (271/365m)

Breteuil : 25km (196/203m)

Vincennes : 22km (57/177m)

View palindro_prime_ints.rb
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
You can’t perform that action at this time.