ruby-scripts A small collection of day-to-day Ruby scripts used in solving problems or in implementing some elegant solutions to old problems. Summary Math Binary addition Count primes bellow n Is even perfect number Is happy number Is perfect square LambertW function Long addition Modular exponentiation Nth molecular number Roman numerals decode Roman numerals encode Text Longest common prefix Smart word wrap Smart word wrap lazy