Function: precprime
Section: number_theoretical
C-Name: gprecprime
Prototype: G
Help: precprime(x): largest pseudoprime <= x, 0 if x<=1.
Description:
 (int):int        precprime($1)
 (gen):gen        gprecprime($1)
Doc: finds the largest pseudoprime (see
 \tet{ispseudoprime}) less than or equal to $x$. $x$ can be of any real type.
 Returns 0 if $x\le1$. Note that if $x$ is a prime, this function returns $x$
 and not the largest prime strictly smaller than $x$. To rigorously prove that
 the result is prime, use \kbd{isprime}.
 The function accepts vector/matrices arguments, and is then applied
 componentwise.
Variant: For a scalar $x$, \fun{long}{precprime}{GEN n} is also available.
