Artifact 4c08cfbb77d32243a05964c698aeeb7ea42929257227a6b45b5e9b7ef8b6f61d:
- Executable file
r37/lisp/csl/html/r37_0121.html
— part of check-in
[f2fda60abd]
at
2011-09-02 18:13:33
on branch master
— Some historical releases purely for archival purposes
git-svn-id: https://svn.code.sf.net/p/reduce-algebra/code/trunk/historical@1375 2bfe0521-f11c-4a00-b80e-6202646ff360 (user: arthurcnorman@users.sourceforge.net, size: 795) [annotate] [blame] [check-ins using] [more...]
<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>