Jump to content

Summarize primes: Difference between revisions

clarify task description
(clarify task description)
Line 2:
 
;Task:
 
Summarize first   '''n'''   primes   ('''p''')   and check if it is prime,   where  '''p  <  1,000'''.
Considering in order of length, n, all sequences of consecutive
primes, p, from 2 onwards, where p < 1000 and n>0, select those
sequences whose sum is prime, and for these display the length of the
sequence, the last item in the sequence, and the sum.
<br><br>
 
2,472

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.