Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.math.mathematica

Topic: Re: 13 is not prime!
Replies: 0  

Advanced Search

Back to Topic List Back to Topic List  
Alex Scheitlin

Posts: 3
Registered: 12/11/04
Re: 13 is not prime!
Posted: Aug 16, 1996 3:02 AM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

The following shows why:
In[] Trace[PrimeQ[p]/.p->13]
Out[] {{PrimeQ[p], False}, False /. p -> 13, False}

Felix Holderied <felix@ira.uka.de> wrote in article
<4upg5q$48n@dragonfly.wolfram.com>...
> Please help me:
> In[]:=
> PrimeQ[13]
> Out[]=
> True
> In[]:=
> PrimeQ[p] /.{p->13}
> Out[]=
> False
> WHY?









Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.