@jrunning/

JoyfulWorrisomeIndianpalmsquirrel

Ruby

No description

fork
loading
Files
  • main.rb
main.rb
1
2
3
require "prime" # simulate -rprime option

puts (?1..?9*4).select{|m|(r=2..m.size).all?{|i|r.all?{|j|m[i-2,j].to_i.prime?}}}
ruby 2.5.5p157 (2019-03-15 revision 67260) [x86_64-linux]