Nice primes: Difference between revisions
Content added Content deleted
(→{{header|Wren}}: Simplification.) |
m (added highlighting and whitespace, corrected a misspelling, implied that N is to be in base ten.) |
||
Line 1:
{{Draft task}}
::# Take an positive integer '''n
::# '''sumn''' is the sum of
::# If '''sumn''''s
::# Stop when '''sumn''''s length is equal to '''1''' (unity)
If '''n''' and '''sumn''' are prime, then '''n''' is a '''Nice prime'''
<br>▼
Let '''500 < n < 1000'''
;Example:
<pre>
Line 13 ⟶ 17:
1 + 6 = 7 (prime)
</pre>
▲<br><br>
=={{header|Factor}}==
|