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 12:01, 2 January 2022
, 2 years agoAdd J
Not a robot (talk | contribs) (Add APL) |
Not a robot (talk | contribs) (Add J) |
||
Line 113:
{{Out}}
<pre>[16,17,25,28,34,37,47,52,64]</pre>
=={{header|J}}==
<lang j>((1*./@p:[:+/@|:10#.^:_1^&2 3)"0#]) i.100</lang>
{{out}}
<pre>16 17 25 28 34 37 47 52 64</pre>
=={{header|Julia}}==
|