MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Replace, test question


I think your conditional needs to be a function of x.  Try:

{58, 61, 15, 66, 10, 2, 24, 81, 45, 84} /. x_ /; PrimeQ[x] -> P

David


  • Prev by Date: Re: I think Omitting the multiplication sign is a big mistake
  • Next by Date: Using Plot3D; rotating the plot but, getting a different image after exporting.
  • Previous by thread: Re: Replace, test question
  • Next by thread: Re: Replace, test question