Untitled

Run Settings
LanguageRuby
Language Version
Run Command
require 'prime' lucas = Hash.new { |h, k| h[k] = h[k-1] + h[k-2] } lucas[1] = 1 lucas[2] = 3 lucas_prime = -> n { (lucas[n] - 1) % n == 0 } 2.upto(Float::INFINITY). lazy. select { |n| n.prime? != lucas_prime[n] }. each &method(:p)
Editor Settings
Theme
Key bindings
Full width
Lines