-
Hi I have a few of questions regarding return values.
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Beta Was this translation helpful? Give feedback.
-
Hi I have a few of questions regarding return values.
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
In the context of the rules, the
is_prime
array has come to be interpreted as "whatever the memory map is for the sieve". That can indeed be a situation where the index of bits represent the prime candidates. In that, the bits may also be inverted if that is how the specific implementation computes the primes.Yes. In line with the previous answer, that is allowed.
In principle, validating the sieve result is not a strict requirement at all from the perspective of the rules. It is a very wise step to take for obvious reasons, but can then be done once and outside of the timed loop.