primes: add comments identifying algorithms and sources.