Number of primes in sets of $k$ positive integers












0












$begingroup$


Consider the set of $k$ numbers ${n+c_1,n+c_2,n+c_3,...,n+c_k}$ where $c_i$ are constant positive integers and $n$ is a varying positive integer such that $n leqslant M$. What is the probability that there are $x$ numbers in this set which are prime, where $0 leqslant x leqslant k$ ? If this is really hard, is there any answer to cases such as $x=0$ and $x=1$ ?



At $k=1$, we have to consider whether $n+c_1$ is prime or composite. We know that $M < n+c_1 leqslant M+c_1$. Thus, our probability $P(k,M,c_i)$ would be:
$$ P(1,M,c_1) = frac{pi(M+c_1)-pi(M)}{c_1} sim frac{(M+c_1)ln M-Mln(M+c_1)}{c_1 ln M ln(M+c_1)}$$



Is the working for $k=1$ right? Can I directly apply Prime Number Theorem for $k geqslant 2$ in a similar fashion. I am doubtful as we are dealing with a group of equally interspaced numbers. Any help or ideas are accepted. Thanks in advance!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Probability wrt what probability distribution on $n$ ? The uniform distribution ? Then it is a matter of counting some particular $l$-uples of primes $le M$
    $endgroup$
    – reuns
    Jan 8 at 8:13


















0












$begingroup$


Consider the set of $k$ numbers ${n+c_1,n+c_2,n+c_3,...,n+c_k}$ where $c_i$ are constant positive integers and $n$ is a varying positive integer such that $n leqslant M$. What is the probability that there are $x$ numbers in this set which are prime, where $0 leqslant x leqslant k$ ? If this is really hard, is there any answer to cases such as $x=0$ and $x=1$ ?



At $k=1$, we have to consider whether $n+c_1$ is prime or composite. We know that $M < n+c_1 leqslant M+c_1$. Thus, our probability $P(k,M,c_i)$ would be:
$$ P(1,M,c_1) = frac{pi(M+c_1)-pi(M)}{c_1} sim frac{(M+c_1)ln M-Mln(M+c_1)}{c_1 ln M ln(M+c_1)}$$



Is the working for $k=1$ right? Can I directly apply Prime Number Theorem for $k geqslant 2$ in a similar fashion. I am doubtful as we are dealing with a group of equally interspaced numbers. Any help or ideas are accepted. Thanks in advance!










share|cite|improve this question











$endgroup$












  • $begingroup$
    Probability wrt what probability distribution on $n$ ? The uniform distribution ? Then it is a matter of counting some particular $l$-uples of primes $le M$
    $endgroup$
    – reuns
    Jan 8 at 8:13
















0












0








0





$begingroup$


Consider the set of $k$ numbers ${n+c_1,n+c_2,n+c_3,...,n+c_k}$ where $c_i$ are constant positive integers and $n$ is a varying positive integer such that $n leqslant M$. What is the probability that there are $x$ numbers in this set which are prime, where $0 leqslant x leqslant k$ ? If this is really hard, is there any answer to cases such as $x=0$ and $x=1$ ?



At $k=1$, we have to consider whether $n+c_1$ is prime or composite. We know that $M < n+c_1 leqslant M+c_1$. Thus, our probability $P(k,M,c_i)$ would be:
$$ P(1,M,c_1) = frac{pi(M+c_1)-pi(M)}{c_1} sim frac{(M+c_1)ln M-Mln(M+c_1)}{c_1 ln M ln(M+c_1)}$$



Is the working for $k=1$ right? Can I directly apply Prime Number Theorem for $k geqslant 2$ in a similar fashion. I am doubtful as we are dealing with a group of equally interspaced numbers. Any help or ideas are accepted. Thanks in advance!










share|cite|improve this question











$endgroup$




Consider the set of $k$ numbers ${n+c_1,n+c_2,n+c_3,...,n+c_k}$ where $c_i$ are constant positive integers and $n$ is a varying positive integer such that $n leqslant M$. What is the probability that there are $x$ numbers in this set which are prime, where $0 leqslant x leqslant k$ ? If this is really hard, is there any answer to cases such as $x=0$ and $x=1$ ?



At $k=1$, we have to consider whether $n+c_1$ is prime or composite. We know that $M < n+c_1 leqslant M+c_1$. Thus, our probability $P(k,M,c_i)$ would be:
$$ P(1,M,c_1) = frac{pi(M+c_1)-pi(M)}{c_1} sim frac{(M+c_1)ln M-Mln(M+c_1)}{c_1 ln M ln(M+c_1)}$$



Is the working for $k=1$ right? Can I directly apply Prime Number Theorem for $k geqslant 2$ in a similar fashion. I am doubtful as we are dealing with a group of equally interspaced numbers. Any help or ideas are accepted. Thanks in advance!







probability number-theory prime-numbers






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 8 at 13:18







Haran

















asked Jan 8 at 7:50









HaranHaran

1,116424




1,116424












  • $begingroup$
    Probability wrt what probability distribution on $n$ ? The uniform distribution ? Then it is a matter of counting some particular $l$-uples of primes $le M$
    $endgroup$
    – reuns
    Jan 8 at 8:13




















  • $begingroup$
    Probability wrt what probability distribution on $n$ ? The uniform distribution ? Then it is a matter of counting some particular $l$-uples of primes $le M$
    $endgroup$
    – reuns
    Jan 8 at 8:13


















$begingroup$
Probability wrt what probability distribution on $n$ ? The uniform distribution ? Then it is a matter of counting some particular $l$-uples of primes $le M$
$endgroup$
– reuns
Jan 8 at 8:13






$begingroup$
Probability wrt what probability distribution on $n$ ? The uniform distribution ? Then it is a matter of counting some particular $l$-uples of primes $le M$
$endgroup$
– reuns
Jan 8 at 8:13












1 Answer
1






active

oldest

votes


















0












$begingroup$

It's a well known fact that the average distance between primes about as large as $n$ is $ln n$. So the probability for a number as large as $n$ to be prime is about $1/ln n$.



Probability that your $k$-th number is prime is therefore:



$$p_k=frac{1}{ln (n+c_k)}$$



Probability that your $k$-th number is not prime is:



$$bar{p}_k=1-frac{1}{ln (n+c_k)}$$



For $x=0$ all numbers must be composite so the probability is:



$$P=prod_{i=1}^k bar{p}_i$$



For $x=1$, exactly one number has to be prime so the probability is:



$$P=p_1bar{p}_2bar{p}_3dotsbar{p}_k+bar{p}_1{p}_2bar{p}_3dotsbar{p}_k+dots+bar{p}_1bar{p}_2bar{p}_3dots{p}_k$$



It's a little bit more difficult to calculate probability for $x>1$ but it's still a fairly straightforward task.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
    $endgroup$
    – Haran
    Jan 8 at 12:59








  • 1




    $begingroup$
    This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:11






  • 1




    $begingroup$
    In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:15











Your Answer





StackExchange.ifUsing("editor", function () {
return StackExchange.using("mathjaxEditing", function () {
StackExchange.MarkdownEditor.creationCallbacks.add(function (editor, postfix) {
StackExchange.mathjaxEditing.prepareWmdForMathJax(editor, postfix, [["$", "$"], ["\\(","\\)"]]);
});
});
}, "mathjax-editing");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "69"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
noCode: true, onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3065903%2fnumber-of-primes-in-sets-of-k-positive-integers%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0












$begingroup$

It's a well known fact that the average distance between primes about as large as $n$ is $ln n$. So the probability for a number as large as $n$ to be prime is about $1/ln n$.



Probability that your $k$-th number is prime is therefore:



$$p_k=frac{1}{ln (n+c_k)}$$



Probability that your $k$-th number is not prime is:



$$bar{p}_k=1-frac{1}{ln (n+c_k)}$$



For $x=0$ all numbers must be composite so the probability is:



$$P=prod_{i=1}^k bar{p}_i$$



For $x=1$, exactly one number has to be prime so the probability is:



$$P=p_1bar{p}_2bar{p}_3dotsbar{p}_k+bar{p}_1{p}_2bar{p}_3dotsbar{p}_k+dots+bar{p}_1bar{p}_2bar{p}_3dots{p}_k$$



It's a little bit more difficult to calculate probability for $x>1$ but it's still a fairly straightforward task.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
    $endgroup$
    – Haran
    Jan 8 at 12:59








  • 1




    $begingroup$
    This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:11






  • 1




    $begingroup$
    In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:15
















0












$begingroup$

It's a well known fact that the average distance between primes about as large as $n$ is $ln n$. So the probability for a number as large as $n$ to be prime is about $1/ln n$.



Probability that your $k$-th number is prime is therefore:



$$p_k=frac{1}{ln (n+c_k)}$$



Probability that your $k$-th number is not prime is:



$$bar{p}_k=1-frac{1}{ln (n+c_k)}$$



For $x=0$ all numbers must be composite so the probability is:



$$P=prod_{i=1}^k bar{p}_i$$



For $x=1$, exactly one number has to be prime so the probability is:



$$P=p_1bar{p}_2bar{p}_3dotsbar{p}_k+bar{p}_1{p}_2bar{p}_3dotsbar{p}_k+dots+bar{p}_1bar{p}_2bar{p}_3dots{p}_k$$



It's a little bit more difficult to calculate probability for $x>1$ but it's still a fairly straightforward task.






share|cite|improve this answer









$endgroup$













  • $begingroup$
    This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
    $endgroup$
    – Haran
    Jan 8 at 12:59








  • 1




    $begingroup$
    This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:11






  • 1




    $begingroup$
    In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:15














0












0








0





$begingroup$

It's a well known fact that the average distance between primes about as large as $n$ is $ln n$. So the probability for a number as large as $n$ to be prime is about $1/ln n$.



Probability that your $k$-th number is prime is therefore:



$$p_k=frac{1}{ln (n+c_k)}$$



Probability that your $k$-th number is not prime is:



$$bar{p}_k=1-frac{1}{ln (n+c_k)}$$



For $x=0$ all numbers must be composite so the probability is:



$$P=prod_{i=1}^k bar{p}_i$$



For $x=1$, exactly one number has to be prime so the probability is:



$$P=p_1bar{p}_2bar{p}_3dotsbar{p}_k+bar{p}_1{p}_2bar{p}_3dotsbar{p}_k+dots+bar{p}_1bar{p}_2bar{p}_3dots{p}_k$$



It's a little bit more difficult to calculate probability for $x>1$ but it's still a fairly straightforward task.






share|cite|improve this answer









$endgroup$



It's a well known fact that the average distance between primes about as large as $n$ is $ln n$. So the probability for a number as large as $n$ to be prime is about $1/ln n$.



Probability that your $k$-th number is prime is therefore:



$$p_k=frac{1}{ln (n+c_k)}$$



Probability that your $k$-th number is not prime is:



$$bar{p}_k=1-frac{1}{ln (n+c_k)}$$



For $x=0$ all numbers must be composite so the probability is:



$$P=prod_{i=1}^k bar{p}_i$$



For $x=1$, exactly one number has to be prime so the probability is:



$$P=p_1bar{p}_2bar{p}_3dotsbar{p}_k+bar{p}_1{p}_2bar{p}_3dotsbar{p}_k+dots+bar{p}_1bar{p}_2bar{p}_3dots{p}_k$$



It's a little bit more difficult to calculate probability for $x>1$ but it's still a fairly straightforward task.







share|cite|improve this answer












share|cite|improve this answer



share|cite|improve this answer










answered Jan 8 at 9:45









OldboyOldboy

8,3621936




8,3621936












  • $begingroup$
    This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
    $endgroup$
    – Haran
    Jan 8 at 12:59








  • 1




    $begingroup$
    This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:11






  • 1




    $begingroup$
    In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:15


















  • $begingroup$
    This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
    $endgroup$
    – Haran
    Jan 8 at 12:59








  • 1




    $begingroup$
    This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:11






  • 1




    $begingroup$
    In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
    $endgroup$
    – Mees de Vries
    Jan 8 at 13:15
















$begingroup$
This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
$endgroup$
– Haran
Jan 8 at 12:59






$begingroup$
This is exactly what I had initially done. But can the prime number theorem directly be applied for this question? We are dealing with a group of numbers with constant distance between them.
$endgroup$
– Haran
Jan 8 at 12:59






1




1




$begingroup$
This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
$endgroup$
– Mees de Vries
Jan 8 at 13:11




$begingroup$
This might work as a heuristic/rule of thumb, but not more strictly: the probabilities are not independent and thus cannot be plainly multiplied together.
$endgroup$
– Mees de Vries
Jan 8 at 13:11




1




1




$begingroup$
In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
$endgroup$
– Mees de Vries
Jan 8 at 13:15




$begingroup$
In particular, if $k = 2, c_2 = c_1 + 2, x = 2$, the twin prime conjecture essentially asks, "is there $c_1$ such that for any $M$ the probability equals 0".
$endgroup$
– Mees de Vries
Jan 8 at 13:15


















draft saved

draft discarded




















































Thanks for contributing an answer to Mathematics Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


Use MathJax to format equations. MathJax reference.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fmath.stackexchange.com%2fquestions%2f3065903%2fnumber-of-primes-in-sets-of-k-positive-integers%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Questions related to Moebius Transform of Characteristic Function of the Primes

List of scandals in India

Can not write log (Is /dev/pts mounted?) - openpty in Ubuntu-on-Windows?