nextprime                package:gmp                R Documentation

_N_e_x_t _p_r_i_m_e _n_u_m_b_e_r

_D_e_s_c_r_i_p_t_i_o_n:

     Return next prime number geater than n

_U_s_a_g_e:

     nextprime(n)

_A_r_g_u_m_e_n_t_s:

       n: Integer

_D_e_t_a_i_l_s:

     This function uses probabilistic algorithm to identify primes. For
     practical purposes, it's adequat, the chance of a composit passing
     will be extremely small.

_V_a_l_u_e:

     A (probably) prime  number

_A_u_t_h_o_r(_s):

     Antoine Lucas

_R_e_f_e_r_e_n_c_e_s:

     Gnu MP Library see http://swox.com/gmp

_S_e_e _A_l_s_o:

     'isprime'

_E_x_a_m_p_l_e_s:

     nextprime(14)

