Safe and Sophie Germain primes: Difference between revisions
Content added Content deleted
Catskill549 (talk | contribs) (added AWK) |
m (→{{header|jq}}: fix wikilink) |
||
Line 153: | Line 153: | ||
'''Works with gojq, the Go implementation of jq''' |
'''Works with gojq, the Go implementation of jq''' |
||
See e.g. [[ |
See e.g. [[Find_adjacent_primes_which_differ_by_a_square_integer#jq]] |
||
for suitable implementions of `is_prime/0` and `primes/0` as used here. |
for suitable implementions of `is_prime/0` and `primes/0` as used here. |
||
<lang jq>limit(50; primes | select(2*. + 1|is_prime))</lang> |
<lang jq>limit(50; primes | select(2*. + 1|is_prime))</lang> |