Moved code to BitSieve.cpp