Sum of square and cube digits of an integer are primes: Difference between revisions
Sum of square and cube digits of an integer are primes (view source)
Revision as of 03:56, 14 February 2022
, 2 years agoAdd Factor
(Sum of square and cube digits of an integer are primes en Python) |
(Add Factor) |
||
Line 253:
<pre>
16 17 25 28 34 37 47 52 64
</pre>
=={{header|Factor}}==
{{works with|Factor|0.99 2021-06-02}}
<lang factor>USING: kernel math math.functions math.primes math.text.utils prettyprint sequences ;
100 <iota> [ [ sq ] [ 3 ^ ] bi [ 1 digit-groups sum prime? ] both? ] filter .</lang>
{{out}}
<pre>
V{ 16 17 25 28 34 37 47 52 64 }
</pre>
|