Double Twin Primes: Difference between revisions
→{{header|Ring}}
(→{{header|ALGOL 68}}: typo) |
|||
Line 483:
=={{header|Ring}}==
<syntaxhighlight lang="ring">
see "
limit = 1000
for n =1 to limit
if
add(
ok
next
for m = 1 to
if
ok
ok
next
see "done..." + nl
func
if (num <= 1) return 0 ok
if (num % 2 = 0
for i = 3 to floor(num / 2) -1 step 2
if (num % i = 0) return 0 ok
next
</syntaxhighlight>
{{out}}
|