Nice primes: Difference between revisions

m
added highlighting and whitespace, corrected a misspelling, implied that N is to be in base ten.
(→‎{{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, greater than zero.'''
::#   '''sumn'''   is the sum of n'sthe decimal digits of   '''n'''
::#   If  '''sumn''''s  lenghtlength is greater than   '''1'''   (unity),   repeat thestep (2) for   '''n = sumn'''
::#   Stop when  '''sumn''''s  length is equal to   '''1'''   (unity)
 
<br> If n and sumn are prime then n is Nice prime
 
<br> Let 500 < n < 1000
If &nbsp; '''n''' &nbsp; and &nbsp; '''sumn''' &nbsp; are prime, &nbsp; then &nbsp; '''n''' &nbsp; is a &nbsp; '''Nice prime'''
<br>
 
Let &nbsp; &nbsp; '''500 &nbsp; &lt; &nbsp; n &nbsp; &lt; &nbsp; 1000'''
 
 
;Example:
<pre>
Line 13 ⟶ 17:
1 + 6 = 7 (prime)
</pre>
<br><br>
 
=={{header|Factor}}==