Ormiston triples: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: Add Ruby) |
m (→{{header|Ruby}}: spelling) |
||
Line 2,132: | Line 2,132: | ||
n = 1E9 |
n = 1E9 |
||
res = Prime.each(n).each_cons(3).count {|ar| all_palin?(ar)} |
res = Prime.each(n).each_cons(3).count {|ar| all_palin?(ar)} |
||
puts "\nThere are #{res} Ormiston |
puts "\nThere are #{res} Ormiston triples below #{n}" |
||
</syntaxhighlight> |
</syntaxhighlight> |
||
{{out}} |
{{out}} |