Summarize primes: Difference between revisions
Content added Content deleted
(clarify task description) |
(→{{header|jq}}: tidy) |
||
Line 734: | Line 734: | ||
"Prime sums of primes less than 1000", |
"Prime sums of primes less than 1000", |
||
(primes(1000) |
(primes(1000) |
||
| |
| range(1; length) as $n |
||
⚫ | |||
| range(1; length) |
|||
⚫ | |||
| select($sum | is_prime) |
| select($sum | is_prime) |
||
| "The sum of the \( |
| "The sum of the \($n) primes from 2 to \(.[$n-1]) is \($sum)." )</lang> |
||
</lang> |
|||
{{out}} |
{{out}} |
||
<pre> |
<pre> |