Display graph of x versus number of prime factors of x

533 Views Asked by At

I am trying to get wolfram alpha website to display a graph where you have x on one axis and the number of not necessarily distinct prime factors on the other axis. I tried this query: plot f(x) = number of factor x

Did not work. How can I do this? Thank you

2

There are 2 best solutions below

1
On BEST ANSWER

After the usual lots of trial and error that WolframAlpha didn't understand, finally

WolframAlpha PrimeOmegaPlot link

0
On

The function you are looking for is called PrimeOmega in Mathematica.

Here is the doc

http://reference.wolfram.com/language/ref/PrimeOmega.html

where you can find a plot of the first 100 values.

It used to be quite simple to just enter a correct Mathematica statement into Wolfram Alpha and get its output but not anymore in the public version. If you type PrimeOmega in Wolfram Alpha you will get its definition and the first few values in a table.

If you have access to Mathematica, use

DiscretePlot[PrimeOmega[n],{n,1,1000}]

and experiments with various options.

Plot of Prime Omega (first 1000 values)