Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Displaying the Percentage of Primes' topicStudent Support Forum > General > Archives > "Displaying the Percentage of Primes"

< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic
Author Comment/Response
Bill Simpson
09/21/12 12:40pm

Perhaps this will help:

In[1]:= Select[Range[10],PrimeQ]

Out[1]= {2,3,5,7}

In[2]:= Length[Select[Range[10],PrimeQ]]

Out[2]= 4

URL: ,

Subject (listing for 'Displaying the Percentage of Primes')
Author Date Posted
Displaying the Percentage of Primes Jared 09/20/12 8:51pm
Re: Displaying the Percentage of Primes Bill Simpson 09/21/12 12:40pm
Re: Displaying the Percentage of Primes Jared 09/21/12 1:39pm
< Previous Comment | Next Comment >Help | Reply To Comment | Reply To Topic