30#ifndef NUMCPP_NO_USE_BOOST
34#include "boost/math/special_functions/prime.hpp"
54 if (
n > boost::math::max_prime)
57 std::to_string(boost::math::max_prime));
60 return boost::math::prime(
n);
#define THROW_INVALID_ARGUMENT_ERROR(msg)
Definition Error.hpp:37
Holds 1D and 2D arrays, the main work horse of the NumCpp library.
Definition NdArrayCore.hpp:139
Definition airy_ai.hpp:39
uint32 prime(uint32 n)
Definition prime.hpp:52
OutputIt transform(InputIt first, InputIt last, OutputIt destination, UnaryOperation unaryFunction)
Definition StlAlgorithms.hpp:775
NdArray< dtype > arange(dtype inStart, dtype inStop, dtype inStep=1)
Definition arange.hpp:59
std::uint32_t uint32
Definition Types.hpp:40