Double Twin Primes: Difference between revisions
Content added Content deleted
m (→{{header|Wren}}: Changed to Wren S/H) |
(Added Sidef) |
||
Line 754: | Line 754: | ||
191, 193, 197, 199 |
191, 193, 197, 199 |
||
821, 823, 827, 829 |
821, 823, 827, 829 |
||
</pre> |
|||
=={{header|Sidef}}== |
|||
<syntaxhighlight lang="ruby">1000.primes.each_cons(4, {|*a| |
|||
if (a.diffs == [2, 4, 2]) { |
|||
say a |
|||
} |
|||
})</syntaxhighlight> |
|||
{{out}} |
|||
<pre> |
|||
[5, 7, 11, 13] |
|||
[11, 13, 17, 19] |
|||
[101, 103, 107, 109] |
|||
[191, 193, 197, 199] |
|||
[821, 823, 827, 829] |
|||
</pre> |
</pre> |
||