Jump to content

Ormiston triples: Difference between revisions

m
m (→‎{{header|Ruby}}: spelling)
Line 2,132:
n = 1E9
res = Prime.each(n).each_cons(3).count {|ar| all_palin?(ar)}
puts "\nThere are #{res} Ormiston triostriples below #{n}"
</syntaxhighlight>
{{out}}
1,149

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.