MathGroup Archive 2008

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

Search the Archive

Re: plot primes only

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88717] Re: plot primes only
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Wed, 14 May 2008 06:59:41 -0400 (EDT)
  • Organization: Uni Leipzig
  • References: <g0edjq$9jd$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de

Hi,

data = Select[Table[i, {i, 1, 100}], PrimeQ]

??

Regards
   Jens

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
> 
> 
> thanx
> markus
> 
> www.humanchaos.net
> 


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