Cuban primes: Difference between revisions

Content added Content deleted
m (→‎{{header|Ruby}}: remove extra trailing whitespace from code)
Line 1,317: Line 1,317:
puts "
puts "
100_000th cuban prime is #{commatize( cuban_primes.take(100_000).last)}
100_000th cuban prime is #{commatize( cuban_primes.take(100_000).last)}
which took #{(Time.now-t0).round} seconds to calculate."
which took #{(Time.now-t0).round} seconds to calculate."</lang>

</lang>
{{out}}
{{out}}
<pre> 7 19 37 61 127 271 331 397 547 631
<pre> 7 19 37 61 127 271 331 397 547 631