Re: plot primes only
- To: mathgroup at smc.vnet.net
- Subject: [mg88723] Re: [mg88729] plot primes only
- From: "W_Craig Carter" <ccarter at mit.edu>
- Date: Wed, 14 May 2008 07:00:51 -0400 (EDT)
- References: <200805141006.GAA09768@smc.vnet.net>
Hello Marcus, This may what you are looking for: data = Range[10] primesdata = Select[data, PrimeQ] Or this, data = Table[{i, Log[i]}, {i, 1, 100000}]; primesdata = Select[data, PrimeQ[#[[1]]] &]; ListPlot[primesdata] Craig On Wed, May 14, 2008 at 6:06 AM, markus mooslechner <markus.mooslechner at chello.at> 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 > > -- W. Craig Carter
- References:
- plot primes only
- From: markus mooslechner <markus.mooslechner@chello.at>
- plot primes only