Myles Baker’s Personal Blog

A repository of Myles Baker’s blogs and presentation slides

Introduction to Spark

1
2
3
4
5
class Fixnum
  def prime?
    ('1' * self) !~ /^1?$|^(11+?)\1+$/
  end
end