<A NAME=PRIMEP>
<TITLE>PRIMEP</TITLE></A>
<b><a href=r37_idx.html>INDEX</a></b><p><p>
<B>PRIMEP</B> _ _ _ _ _ _ _ _ _ _ _ _ <B>operator</B><P>
<P>
<P>
<P>
<P> <H3>
syntax: </H3>
<em>primep</em>(<expression>) or <em>primep</em> <simple\_expression
>
<P>
<P>
<P>
If <expression> evaluates to a integer, <em>primep</em> returns
<A HREF=r37_0122.html>true</A> <P>
<P>
if <expression> is a prime number and
<A HREF=r37_0014.html>nil</A> otherwise.
If <expression> does not have an integer value, a type error occurs.
<P>
<P>
<P> <H3>
examples: </H3>
<P><PRE><TT>
if primep 3 then write "yes" else write "no";
YES
if primep a then 1;
***** A invalid as integer
</TT></PRE><P>