Sum of square and cube digits of an integer are primes: Difference between revisions

Clarified task description and added an example.
(Clarified task description and added an example.)
Line 2:
 
;Task:
Find and show here all positive integers '''n''' less than '''100''' where:
* the sum of the digits of the square of '''n''' is prime; and
* the sum of the digits of the cube of '''n''' is also prime.
<br>
;Example:
Sum of square and cube digits of an integer n are primes, where '''n<100'''
'''16''' satisfies the task descrption because 16 x 16 = 256 has a digit sum of 13 which is prime and
16 x 16 x 16 = 4096 has a digit sum of 19 which is also prime.
<br><br>
 
=={{header|ALGOL 68}}==
{{libheader|ALGOL 68-primes}}
9,485

edits