
19 Apr
2008
19 Apr
'08
7:12 p.m.
Bo Persson skrev:
Thorsten Ottosen wrote:
I tried expanding your list of primes so that it contains more numbers in the small range and in particulat such that it contains numbers closely above powers of 2. It happens frequently that powers of 2 comes up.
Here's my new list:
static const std::size_t prime_list[] = { 5ul, 11ul, 17ul, 29ul, 37ul, 53ul, 67ul, 79ul, 97ul, 131ul, 193ul, 257ul, 389ul, 512ul, 769ul,
512ul means 521ul?
yes :-) -Thorsten