CalmoSoft primes: Difference between revisions
m
→{{header|Wren}}: Now uses new 'Fmt.va' method to abridge lists.
m (→{{header|Wren}}: Now uses new 'Fmt.va' method to abridge lists.) |
|||
Line 879:
for (i in 0...pc) {
if (pc - i < longest) break
var sum2 = sum
for (j in pc-1..i) {
var temp = j - i + 1
if (temp < longest) break
if (Int.isPrime(sum2)) {
if (temp > longest) {
Line 912:
Fmt.print("having a length of $,d is/are:\n", longest)
for (i in 0...sIndices.count) {
var
var
Fmt.print("$s = $,d", cps, sums[i])
}
|