29#ifndef REPLACE_H_INCLUDED
30#define REPLACE_H_INCLUDED
34struct is_prime:
public std::unary_function<short, bool>
43 static const unsigned short primes[] = {
44 2, 3, 5, 7, 9, 11, 13, 15, 17, 19, 23, 25, 29, 31, 35,
45 37, 41, 43, 47, 49, 53, 59, 61, 67, 71, 73, 79, 83, 89,
46 97, 101, 103, 107, 109, 113, 121, 127, 131, 137, 139,
47 143, 149, 151, 157, 163, 167, 169, 173, 179, 181, 191,
48 193, 197, 199, 211, 223, 227, 229, 233, 239, 241, 251
51 const unsigned short *
end = primes +
sizeof primes /
sizeof *primes;
54 for (
const unsigned short *
p = primes;
p !=
end; ++
p)
bool operator()(const short &) const