Stochastic_Jimmy
New member
- Joined
- Jan 10, 2013
- Messages
- 27
Suppose we're picking an integer \(\displaystyle x\) at random between 1 and, let's say, 100. And suppose we want to know the probability that \(\displaystyle x\) has \(\displaystyle k\) prime factors (\(\displaystyle k \geq 1\)).
We'd need to know how many of the integers between 1 and 100 have a single prime factor (i.e. the primes themselves), and also how many have 2 prime factors, how many have 3 primes factors, etc.
I'm wondering if there's a way to be more efficient than actually checking each of the 100 possible integers for its number of prime factors?
Thanks in advance for any thoughts!
We'd need to know how many of the integers between 1 and 100 have a single prime factor (i.e. the primes themselves), and also how many have 2 prime factors, how many have 3 primes factors, etc.
I'm wondering if there's a way to be more efficient than actually checking each of the 100 possible integers for its number of prime factors?
Thanks in advance for any thoughts!