Iccanobif primes: Difference between revisions

→‎{{header|Wren}}: Realigned with Raku output.
(Added Wren)
(→‎{{header|Wren}}: Realigned with Raku output.)
Line 62:
var curr = Mpz.one
var count = 0
System.print("First 2527 Iccanobif primes:")
while (count < 2527) {
fib.add(curr, prev)
var fs = fib.toString
Line 69:
if (p.probPrime(15) > 0) {
count = count + 1
Fmt.write("$2d:var $20apc ",= p.toString.count, fib)
varFmt.print("$2d: fc$20a =($d digits)", fs.count, p, pc)
if (fc > 40) {
Fmt.print("($d digits)", fc)
} else {
System.print()
}
}
prev.set(curr)
Line 83 ⟶ 78:
{{out}}
<pre>
First 2527 Iccanobif primes:
1: 2 (1 digits)
2: 3 (1 digits)
3: 5 (1 digits)
4: 1331 (2 digits)
5: 3443 (2 digits)
6: 377773 (3 digits)
7: 15977951 (4 digits)
8: 1094664901 (5 digits)
9: 7502552057 (5 digits)
10: 121393393121 (6 digits)
11: 56577108676171 (14 digits)
11: 17167680177565
12: 940647607443258103531 (21 digits)
12: 135301852344706746049
13: 5237879497657222310489731409575442761 (37 digits)
13: 1672445759041379840132227567949787325
14: 9026258083384996860449366072142307801963 (40 digits)
14: 3691087032412706639440686994833808526209
15: 3046446623702101344319900335674812302969...9692032184765330099134431012073266446403 (80 digits)
16: 3291335863877902132577841137362967479985...5899747692637311487752312097783685331923 (104 digits)
17: 1316570382707994719237722585901567604188...8814067651095852277329174997072830756131 (137 digits)
18: 1675034174468327670575736193894876131595...5951316784983916375750767238644714305761 (330 digits)
19: 3195305325960035713117890336847332837620...0267382337486330987113175300695235035913 (406 digits)
20: 7052037406588641607292327163101729115305...5035119271013617232927061468856047302507 (409 digits)
21: 1844122637424215337650420157810698056253...3526508960187510240567335124247362214481 (503 digits)
22: 1028100331638516929630511012474739380092...2900839374742101150369296158361330018201 (888 digits)
23: 1236585464413454668046818547042693694555...5554963962407458186408664543144645856321 (1020 digits)
24: 1937225688996938210287101347853037819884...4889187303587431017820128396998865227391 (1122 digits)
25: 1642563481673420010217451656022543765336...6335673452206561547120100243761843652461 (1911 digits)
26: 48989340566288399474...02930339234215909399 (1947 digits)
27: 12746927684958209654...53436989647994940101 (2283 digits)
</pre>
9,490

edits