# The prime numbers between 1 and 100 [closed]

I'm new on this and the help seems not as helpful on this particular subject The prime numbers between 1 and 100 mathematica show steps

• – "the help seems not as helpful on this particular subject". On the contrary, simply searching for prime numbers gives you all the information you need. Commented Nov 8, 2015 at 21:33
• The first example in the reference for Prime is: Table[Prime[n], {n, 25}] Commented Nov 8, 2015 at 21:33
• thank you very much.Does this answer mathematica programs.? Commented Nov 8, 2015 at 21:36
• Your question seems to ask to find those integers from 1 to 100 that are prime. A direct translation of the question into Mathematica code gives an answer: Select[Range[100], PrimeQ] Commented Nov 9, 2015 at 14:58

You could use

t=Table[FactorInteger[k],{k,1,100}] (* show the factors *)
Cases[t,{{_,1}}]  (* select only those with one factor with exponent 1 *)


You need to use PrimePi to find how many primes are less than 100

Array[Prime, PrimePi[100]]

• He doesn't "need". But certainly he "could" Commented Nov 9, 2015 at 0:42