Skip to content

A few questions regarding acceptable return values #794

Answered by rbergen
axvr asked this question in Q&A
Discussion options

You must be logged in to vote
  1. 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.

  2. Yes. In line with the previous answer, that is allowed.

  3. 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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by axvr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants