Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

sage sample

hi i have a problem to solve, sorry if my english is bad :D:

I have to calculate function ?(x) that gives me a number of prime-numbers in range from zero to x.

x=10^10 and i have to take a sample of n random numbers from 1 to x and test how much of them are primes. then from that part(proportion) i have to calculate ?(x).

another question is : what amount of sample i have to take so that relative error, when i calculate number od prime number by prime_pi(10^10), falls below 1%.

if you have any question just ask and I will try to answer them.

thank you soo much :D :D :D

sage sample

hi i have a problem to solve, sorry if my english is bad :D:

I have to calculate function ?(x) pi(x) that gives me a number of prime-numbers in range from zero to x.

x=10^10 and i have to take a sample of n random numbers from 1 to x and test how much of them are primes. then from that part(proportion) i have to calculate ?(x).pi(x).

another question is : what amount of sample i have to take so that relative error, when i calculate number od prime number by prime_pi(10^10), falls below 1%.

if you have any question just ask and I will try to answer them.

thank you soo much :D :D :D