Boost logo

Boost :

From: Bo Persson (bop_at_[hidden])
Date: 2008-04-19 14:27:29


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?

> 1031ul, 1543ul, 2053ul, 3079ul, 6151ul, 12289ul,
> 24593ul, 49157ul, 98317ul, 196613ul, 393241ul, 786433ul,
> 1572869ul, 3145739ul, 6291469ul, 12582917ul, 25165843ul,
> 50331653ul, 100663319ul, 201326611ul, 402653189ul,
> 805306457ul, 1610612741ul, 3221225473ul, 4294967291ul };
>

Bo Persson


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk