Triplet of three numbers: Difference between revisions

m
imported>Maxima enthusiast
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1,074:
Elapsed Time: 96.852 ms.
</pre>
 
=={{header|EasyLang}}==
{{trans|BASIC256}}
<syntaxhighlight>
n = 6000
len p[] n + 4
for i = 2 to sqrt len p[]
if p[i] = 0
for j = i * 2 step i to len p[]
p[j] = 1
.
.
.
for i = 3 to n - 1
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#}}==
Line 2,431 ⟶ 2,450:
{{libheader|Wren-math}}
{{libheader|Wren-fmt}}
<syntaxhighlight lang="ecmascriptwren">import "./math" for Int
import "./fmt" for Fmt
 
var c = Int.primeSieve(6003, false)
2,046

edits