Ramanujan primes/twins: Difference between revisions
m
→{{header|Wren}}: Minor tidy
(→J: add) |
m (→{{header|Wren}}: Minor tidy) |
||
Line 647:
<br>
As calculating the first 1 million Ramanujan primes individually is out of the question, we follow the Phix entry's clever strategy here which brings this task comfortably within our ambit.
<syntaxhighlight lang="
import "./math" for Int, Math
import "./fmt" for Fmt
var count
Line 714:
}
Fmt.print("There are $,d twins in the first $,d Ramanujan primes.", twins, limit)
System.print("Took %(Math.toPlaces(System.clock - start, 2, 0)) seconds.\n")
}</syntaxhighlight>
|