Sum of square and cube digits of an integer are primes: Difference between revisions
Content added Content deleted
(Sum of square and cube digits of an integer are primes en Python) |
(Add Factor) |
||
Line 253: | Line 253: | ||
<pre> |
<pre> |
||
16 17 25 28 34 37 47 52 64 |
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> |
</pre> |
||