Probability that 4 single digit numbers whose sum is 28 contain at least two prime numbers












1












$begingroup$


What is the probability that a list of 4, not necessarily distinct, single-digit numbers, whose sum is 28, will contain at least two prime numbers?



There are not a whole lot of possible "desirable" cases ,but I was trying to see if there's a way to limit my search.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    why can you not compute this by straight enumeration in excel, say?
    $endgroup$
    – gt6989b
    Jan 25 at 19:07










  • $begingroup$
    Does $6,7,7,8$ count?
    $endgroup$
    – TonyK
    Jan 25 at 19:08






  • 3




    $begingroup$
    Notice that $9+9+5+5 = 28$ is the largest possible sum involving two primes both of which smaller than $7$. It follows that all sequences of four digits whose sum is $28$ and have at least two primes must include at least one $7$ such as $9+9+7+3, 9+7+7+5, 8+7+7+6, 7+7+7+7$. Convince yourself that we have found the full list and count the number of arrangements of the digits. Finally, divide by the total number of sequences of 4 digits whose sum is $28$ to get the probability.
    $endgroup$
    – JMoravitz
    Jan 25 at 19:13












  • $begingroup$
    @gt6989b I'm trying to see if anyone gets better way than bashing. Hence this is tagged "elementary"
    $endgroup$
    – The Pianist
    Jan 25 at 19:13






  • 1




    $begingroup$
    Welcome to MSE. You are much more likely to get a response if you show what you have tried and where you are stuck. Please show your working.
    $endgroup$
    – stuart stevenson
    Jan 25 at 19:13
















1












$begingroup$


What is the probability that a list of 4, not necessarily distinct, single-digit numbers, whose sum is 28, will contain at least two prime numbers?



There are not a whole lot of possible "desirable" cases ,but I was trying to see if there's a way to limit my search.










share|cite|improve this question











$endgroup$








  • 1




    $begingroup$
    why can you not compute this by straight enumeration in excel, say?
    $endgroup$
    – gt6989b
    Jan 25 at 19:07










  • $begingroup$
    Does $6,7,7,8$ count?
    $endgroup$
    – TonyK
    Jan 25 at 19:08






  • 3




    $begingroup$
    Notice that $9+9+5+5 = 28$ is the largest possible sum involving two primes both of which smaller than $7$. It follows that all sequences of four digits whose sum is $28$ and have at least two primes must include at least one $7$ such as $9+9+7+3, 9+7+7+5, 8+7+7+6, 7+7+7+7$. Convince yourself that we have found the full list and count the number of arrangements of the digits. Finally, divide by the total number of sequences of 4 digits whose sum is $28$ to get the probability.
    $endgroup$
    – JMoravitz
    Jan 25 at 19:13












  • $begingroup$
    @gt6989b I'm trying to see if anyone gets better way than bashing. Hence this is tagged "elementary"
    $endgroup$
    – The Pianist
    Jan 25 at 19:13






  • 1




    $begingroup$
    Welcome to MSE. You are much more likely to get a response if you show what you have tried and where you are stuck. Please show your working.
    $endgroup$
    – stuart stevenson
    Jan 25 at 19:13














1












1








1





$begingroup$


What is the probability that a list of 4, not necessarily distinct, single-digit numbers, whose sum is 28, will contain at least two prime numbers?



There are not a whole lot of possible "desirable" cases ,but I was trying to see if there's a way to limit my search.










share|cite|improve this question











$endgroup$




What is the probability that a list of 4, not necessarily distinct, single-digit numbers, whose sum is 28, will contain at least two prime numbers?



There are not a whole lot of possible "desirable" cases ,but I was trying to see if there's a way to limit my search.







elementary-number-theory elementary-probability






share|cite|improve this question















share|cite|improve this question













share|cite|improve this question




share|cite|improve this question








edited Jan 25 at 19:24







The Pianist

















asked Jan 25 at 19:05









The PianistThe Pianist

153




153








  • 1




    $begingroup$
    why can you not compute this by straight enumeration in excel, say?
    $endgroup$
    – gt6989b
    Jan 25 at 19:07










  • $begingroup$
    Does $6,7,7,8$ count?
    $endgroup$
    – TonyK
    Jan 25 at 19:08






  • 3




    $begingroup$
    Notice that $9+9+5+5 = 28$ is the largest possible sum involving two primes both of which smaller than $7$. It follows that all sequences of four digits whose sum is $28$ and have at least two primes must include at least one $7$ such as $9+9+7+3, 9+7+7+5, 8+7+7+6, 7+7+7+7$. Convince yourself that we have found the full list and count the number of arrangements of the digits. Finally, divide by the total number of sequences of 4 digits whose sum is $28$ to get the probability.
    $endgroup$
    – JMoravitz
    Jan 25 at 19:13












  • $begingroup$
    @gt6989b I'm trying to see if anyone gets better way than bashing. Hence this is tagged "elementary"
    $endgroup$
    – The Pianist
    Jan 25 at 19:13






  • 1




    $begingroup$
    Welcome to MSE. You are much more likely to get a response if you show what you have tried and where you are stuck. Please show your working.
    $endgroup$
    – stuart stevenson
    Jan 25 at 19:13














  • 1




    $begingroup$
    why can you not compute this by straight enumeration in excel, say?
    $endgroup$
    – gt6989b
    Jan 25 at 19:07










  • $begingroup$
    Does $6,7,7,8$ count?
    $endgroup$
    – TonyK
    Jan 25 at 19:08






  • 3




    $begingroup$
    Notice that $9+9+5+5 = 28$ is the largest possible sum involving two primes both of which smaller than $7$. It follows that all sequences of four digits whose sum is $28$ and have at least two primes must include at least one $7$ such as $9+9+7+3, 9+7+7+5, 8+7+7+6, 7+7+7+7$. Convince yourself that we have found the full list and count the number of arrangements of the digits. Finally, divide by the total number of sequences of 4 digits whose sum is $28$ to get the probability.
    $endgroup$
    – JMoravitz
    Jan 25 at 19:13












  • $begingroup$
    @gt6989b I'm trying to see if anyone gets better way than bashing. Hence this is tagged "elementary"
    $endgroup$
    – The Pianist
    Jan 25 at 19:13






  • 1




    $begingroup$
    Welcome to MSE. You are much more likely to get a response if you show what you have tried and where you are stuck. Please show your working.
    $endgroup$
    – stuart stevenson
    Jan 25 at 19:13








1




1




$begingroup$
why can you not compute this by straight enumeration in excel, say?
$endgroup$
– gt6989b
Jan 25 at 19:07




$begingroup$
why can you not compute this by straight enumeration in excel, say?
$endgroup$
– gt6989b
Jan 25 at 19:07












$begingroup$
Does $6,7,7,8$ count?
$endgroup$
– TonyK
Jan 25 at 19:08




$begingroup$
Does $6,7,7,8$ count?
$endgroup$
– TonyK
Jan 25 at 19:08




3




3




$begingroup$
Notice that $9+9+5+5 = 28$ is the largest possible sum involving two primes both of which smaller than $7$. It follows that all sequences of four digits whose sum is $28$ and have at least two primes must include at least one $7$ such as $9+9+7+3, 9+7+7+5, 8+7+7+6, 7+7+7+7$. Convince yourself that we have found the full list and count the number of arrangements of the digits. Finally, divide by the total number of sequences of 4 digits whose sum is $28$ to get the probability.
$endgroup$
– JMoravitz
Jan 25 at 19:13






$begingroup$
Notice that $9+9+5+5 = 28$ is the largest possible sum involving two primes both of which smaller than $7$. It follows that all sequences of four digits whose sum is $28$ and have at least two primes must include at least one $7$ such as $9+9+7+3, 9+7+7+5, 8+7+7+6, 7+7+7+7$. Convince yourself that we have found the full list and count the number of arrangements of the digits. Finally, divide by the total number of sequences of 4 digits whose sum is $28$ to get the probability.
$endgroup$
– JMoravitz
Jan 25 at 19:13














$begingroup$
@gt6989b I'm trying to see if anyone gets better way than bashing. Hence this is tagged "elementary"
$endgroup$
– The Pianist
Jan 25 at 19:13




$begingroup$
@gt6989b I'm trying to see if anyone gets better way than bashing. Hence this is tagged "elementary"
$endgroup$
– The Pianist
Jan 25 at 19:13




1




1




$begingroup$
Welcome to MSE. You are much more likely to get a response if you show what you have tried and where you are stuck. Please show your working.
$endgroup$
– stuart stevenson
Jan 25 at 19:13




$begingroup$
Welcome to MSE. You are much more likely to get a response if you show what you have tried and where you are stuck. Please show your working.
$endgroup$
– stuart stevenson
Jan 25 at 19:13










1 Answer
1






active

oldest

votes


















0












$begingroup$

There are only six cases that fulfill the requirements:



{{9, 9, 7, 3}, {9, 9, 5, 5}, {9, 7, 7, 5}, {8, 8, 7, 5}, {8, 7, 7, 6}, {7, 7, 7, 7}}



The total number of cases is 15, so the probability is $0.4$.



Start with the highest value in a set of four is $9$. If the next value is also $9$, then the following two values must be primes, giving $7$ and $3$ or $5$ and $5$.



It is simple to see that $9, 8$ has no two prime completions, to move to $9, 7$. The only completion is then $7, 5$. And we're done with $9$ as the largest digit.



Consider $8$ as the largest digit. The largest second digit is then $8$, which gives a completion of $7, 5$.



And so on....






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
    $endgroup$
    – The Pianist
    Jan 25 at 21:10













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%2f3087499%2fprobability-that-4-single-digit-numbers-whose-sum-is-28-contain-at-least-two-pri%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$

There are only six cases that fulfill the requirements:



{{9, 9, 7, 3}, {9, 9, 5, 5}, {9, 7, 7, 5}, {8, 8, 7, 5}, {8, 7, 7, 6}, {7, 7, 7, 7}}



The total number of cases is 15, so the probability is $0.4$.



Start with the highest value in a set of four is $9$. If the next value is also $9$, then the following two values must be primes, giving $7$ and $3$ or $5$ and $5$.



It is simple to see that $9, 8$ has no two prime completions, to move to $9, 7$. The only completion is then $7, 5$. And we're done with $9$ as the largest digit.



Consider $8$ as the largest digit. The largest second digit is then $8$, which gives a completion of $7, 5$.



And so on....






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
    $endgroup$
    – The Pianist
    Jan 25 at 21:10


















0












$begingroup$

There are only six cases that fulfill the requirements:



{{9, 9, 7, 3}, {9, 9, 5, 5}, {9, 7, 7, 5}, {8, 8, 7, 5}, {8, 7, 7, 6}, {7, 7, 7, 7}}



The total number of cases is 15, so the probability is $0.4$.



Start with the highest value in a set of four is $9$. If the next value is also $9$, then the following two values must be primes, giving $7$ and $3$ or $5$ and $5$.



It is simple to see that $9, 8$ has no two prime completions, to move to $9, 7$. The only completion is then $7, 5$. And we're done with $9$ as the largest digit.



Consider $8$ as the largest digit. The largest second digit is then $8$, which gives a completion of $7, 5$.



And so on....






share|cite|improve this answer











$endgroup$









  • 1




    $begingroup$
    The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
    $endgroup$
    – The Pianist
    Jan 25 at 21:10
















0












0








0





$begingroup$

There are only six cases that fulfill the requirements:



{{9, 9, 7, 3}, {9, 9, 5, 5}, {9, 7, 7, 5}, {8, 8, 7, 5}, {8, 7, 7, 6}, {7, 7, 7, 7}}



The total number of cases is 15, so the probability is $0.4$.



Start with the highest value in a set of four is $9$. If the next value is also $9$, then the following two values must be primes, giving $7$ and $3$ or $5$ and $5$.



It is simple to see that $9, 8$ has no two prime completions, to move to $9, 7$. The only completion is then $7, 5$. And we're done with $9$ as the largest digit.



Consider $8$ as the largest digit. The largest second digit is then $8$, which gives a completion of $7, 5$.



And so on....






share|cite|improve this answer











$endgroup$



There are only six cases that fulfill the requirements:



{{9, 9, 7, 3}, {9, 9, 5, 5}, {9, 7, 7, 5}, {8, 8, 7, 5}, {8, 7, 7, 6}, {7, 7, 7, 7}}



The total number of cases is 15, so the probability is $0.4$.



Start with the highest value in a set of four is $9$. If the next value is also $9$, then the following two values must be primes, giving $7$ and $3$ or $5$ and $5$.



It is simple to see that $9, 8$ has no two prime completions, to move to $9, 7$. The only completion is then $7, 5$. And we're done with $9$ as the largest digit.



Consider $8$ as the largest digit. The largest second digit is then $8$, which gives a completion of $7, 5$.



And so on....







share|cite|improve this answer














share|cite|improve this answer



share|cite|improve this answer








edited Jan 25 at 21:32

























answered Jan 25 at 20:12









David G. StorkDavid G. Stork

11.1k41432




11.1k41432








  • 1




    $begingroup$
    The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
    $endgroup$
    – The Pianist
    Jan 25 at 21:10
















  • 1




    $begingroup$
    The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
    $endgroup$
    – The Pianist
    Jan 25 at 21:10










1




1




$begingroup$
The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
$endgroup$
– The Pianist
Jan 25 at 21:10






$begingroup$
The only missing case seems to be {8,7,7,6}. Inspired by replies, I came to this approach: since 28/4=7, the 4 numbers should be relatively large. Let's start from the two primes, we have only four cases {7,7}, {7,5}, {5,5}, and {7,3}. For each case we can easily find the remaining two numbers. Total number of desirable cases is 6. If I'm not mistaken, the number of all cases with sum of 28 is 15 (9/9/9/1, all the way to 7/7/7/7). So the probability is 6/15=2/5.
$endgroup$
– The Pianist
Jan 25 at 21:10




















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%2f3087499%2fprobability-that-4-single-digit-numbers-whose-sum-is-28-contain-at-least-two-pri%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

MongoDB - Not Authorized To Execute Command

How to fix TextFormField cause rebuild widget in Flutter

in spring boot 2.1 many test slices are not allowed anymore due to multiple @BootstrapWith