Prime numbers which contain 123: Difference between revisions
Content added Content deleted
(Initial FutureBasic task solution added) |
Thundergnat (talk | contribs) m (→{{header|Raku}}: much more efficient filtering) |
||
Line 870: | Line 870: | ||
=={{header|Raku}}== |
=={{header|Raku}}== |
||
<syntaxhighlight lang="raku" line>my @p123 = ^∞ .grep: { . |
<syntaxhighlight lang="raku" line>my @p123 = ^∞ .grep: { (.contains: 123) && .is-prime }; |
||
put display @p123[^(@p123.first: * > 1e5, :k)]; |
put display @p123[^(@p123.first: * > 1e5, :k)]; |