Jump to content

Prime numbers which contain 123: Difference between revisions

m
→‎{{header|Raku}}: much more efficient filtering
(Initial FutureBasic task solution added)
m (→‎{{header|Raku}}: much more efficient filtering)
Line 870:
 
=={{header|Raku}}==
<syntaxhighlight lang="raku" line>my @p123 = ^∞ .grep: { (.is-primecontains: 123) && .contains: 123is-prime };
 
put display @p123[^(@p123.first: * > 1e5, :k)];
10,333

edits

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