Twin Primes Segmented Sieve of Zakiya (SSoZ) Explained

kdevel kdevel at vogtner.de
Sun Jun 19 10:58:30 UTC 2022


On Saturday, 18 June 2022 at 23:44:27 UTC, Salih Dincer wrote:
> Yes I did.  Could the error be because you didn't copy the 
> `sqrt()` function?

Oops. Yes.

>
> On Saturday, 18 June 2022 at 21:01:04 UTC, kdevel wrote:
>> - I can't read the 2.iota-stuff. Are you trying to avoid 
>> writing a raw for-loop?
>
> `iota()` and `each()` are essential. But it needs some 
> experience to find the error in `each()`.

For enhanced readability I suggest not to use UFCS in

```
2.iota!testType(100_000_002)
```

but group begin/end together:

```
iota!testType(2, 100_000_002)
```



More information about the Digitalmars-d mailing list