Jump to content

Brilliant numbers: Difference between revisions

m
→‎{{header|Raku}}: better grammar
m (edit order of magnitude, typo)
m (→‎{{header|Raku}}: better grammar)
Line 48:
my $threshold = exp $e, 10;
my $key = @brilliant.first: :k, * >= exp $e, 10;
say "First term >= than {comma $threshold} is {ordinal-digit 1 + $key} in the series: {comma @brilliant[$key]}";
}</lang>
{{out}}
Line 63:
1247 1261 1271 1273 1333 1343 1349 1357 1363 1369
 
First term >= than 10 is 4th in the series: 10
First term >= than 100 is 11th in the series: 121
First term >= than 1,000 is 74th in the series: 1,003
First term >= than 10,000 is 242nd in the series: 10,201
First term >= than 100,000 is 2505th in the series: 100,013
First term >= than 1,000,000 is 10538th in the series: 1,018,081
First term >= than 10,000,000 is 124364th in the series: 10,000,043
First term >= than 100,000,000 is 573929th in the series: 100,140,049
First term >= than 1,000,000,000 is 7407841st in the series: 1,000,000,081</pre>
10,333

edits

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