// primetab.cpp - written and placed in the public domain by Jeffrey Walton // // nbtheory.cpp originally built the prime table on the fly, and then // returned a reference to it in a Singleton. This was useful to // save memory in the old days. Nowadays we can precompute the table // and place it in the read-only data segment. Also see // https://github.com/weidai11/cryptopp/issues/1210. // The table below was generated from the original Crypto++ table: // // $ cat test.cxx // #include // #include // #include // #include "config.h" // #include "nbtheory.h" // // int main(int argc, char* argv[]) // { // using namespace CryptoPP; // // unsigned int primeTableSize = 0; // const word16* primeTable = NULLPTR; // primeTable = GetPrimeTable(primeTableSize); // // for (size_t i=0; i