Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: plot primes only

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88719] Re: plot primes only
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Wed, 14 May 2008 07:00:04 -0400 (EDT)
  • Organization: University of Bergen
  • References: <g0edjq$9jd$1@smc.vnet.net>

markus mooslechner wrote:
> hi everyone!
> 
> a quick one:
> how can i tell mathematica to only list the primes from a list of data 
> and omit the others?
> primeQ only tells me the boolean result
> 
> 

Select[list, PrimeQ]


  • Prev by Date: Re: Region for ListPlot3D
  • Next by Date: Re: plot primes only
  • Previous by thread: Re: plot primes only
  • Next by thread: Re: plot primes only