Triplet of three numbers: Difference between revisions
Added Easylang
m (→{{header|Wren}}: Minor tidy) |
(Added Easylang) |
||
Line 1,074:
Elapsed Time: 96.852 ms.
</pre>
=={{header|EasyLang}}==
{{trans|BASIC256}}
<syntaxhighlight>
n = 6000
len p[] n + 5
for i = 2 to sqrt n
if p[i] = 0
for j = i * 2 step i to n
p[j] = 1
.
.
.
for i = 3 to n
if p[i - 1] = 0 and p[i + 3] = 0 and p[i + 5] = 0
print i & ": " & i - 1 & " " & i + 3 & " " & i + 5
.
.
</syntaxhighlight>
=={{header|F_Sharp|F#}}==
|