Problem:
Estimate the number of positive integers such that has a prime factor greater than .
Submit a positive integer . If the correct answer is , you will receive max points.
Problem:
Estimate the number of positive integers such that has a prime factor greater than .
Submit a positive integer . If the correct answer is , you will receive max points.
Solution:
Let denote . We count by summing over potential prime factors .
For any prime , we have that for two values of if , and zero values otherwise. Pretending these values are equally likely to be any of , we expect the number of corresponding to a prime to be .
The number of primes up to is, by the Prime Number Theorem . Assuming around half of the prime numbers are , we on average expect some to be a prime of the time. Approximating by an integral over potential primes from 1 to , using our approximations, gives
We now approximately calculate this integral as follows:
Here, for the first integral, we estimate on by , and for the second integral, we use that the antiderivative of is .
Using , one can estimate
giving a final estimate of
This estimate yields a score of 15. If one uses the closer estimate , one gets the final estimate of 761428, yielding a score of 18.
Here is a code using sympy to calculate the final answer:
```
from sympy.ntheory import factorint
cnt = 0
for n in range(1, 106+1):
if max(factorint(n2+1, multiple=True)) > n:
cnt += 1
print(cnt)
```