1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Nookie1986 [14]
3 years ago
7

A twin primes is a pair of prime numbers such that the difference between them is 2. For example, 5 and 7 are twin primes, and 1

7 and 19 is another pair of twin primes. Write a program that finds all the twin primes between 10 and 500, save the results in a two-column matrix, and output result nicely formatted. You can use the built-in function, isprime().
Mathematics
1 answer:
Nikitich [7]3 years ago
7 0

Answer:         There is 22 possible combinations.

Step-by-step explanation:

%a is equal or greater then 11 and it is odd

count=0;

P=[];

for a=11:2:499

   b=a+2;

   %assume a and b are prime;

   prime=1;

   %check if a and b are prime

   for k=2:ceil(sqrt(b))

       %if a OR b is divisible by k, break

       %it is not prime

       if mod(a, k)==0 | mod(b, k)==0

           prime=0;

           break;

       end

   end

   if prime

       count=count+1;

       P(count, :)=[a b];

   end

end

fprintf('There is %d possible combinations.\n', count)

display(P)

There is 22 possible combinations.

P =

   11    13

   17    19

   29    31

   41    43

   59    61

   71    73

  101   103

  107   109

  137   139

  149   151

  179   181

  191   193

  197   199

  227   229

  239   241

  269   271

  281   283

  311   313

  347   349

  419   421

  431   433

  461   463

You might be interested in
What is the answer to this question?
SOVA2 [1]

Answer:

the answer is option 3rd

5 0
2 years ago
Dorothy Little purchased a mailing list of 2,000 names and addresses for her mail order business, but after scanning the list sh
amm1812

Answer:  c.  0.0778

Step-by-step explanation:

Let  X is the number of non-authentic names in her sample with parameter :

n= 5 and p=40% = 0.40

Binomial probability distribution, the probability of getting success in x trials :-

P(X=x)=^nC_xp^x(1-p)^{n-x}

We have ,

P(X=0)=^{5}C_0(0.40)^0(1-0.40)^{5}\\\\=(1)(0.60)^{5}\\\\=0.07776\approx0.0778

Thus , the correct answer is option c. 0.0778

8 0
3 years ago
What is the volume of the square pyramid?
Natalka [10]

if i help you, i hope you help me.

Vpyramid: 1/3BH

1/3(5)(14.2)=

23.6666666667 ROUNDED 23.7

8 0
3 years ago
Use the drop-down menus to choose steps in order to correctly solve<br> 4k−6=−2k−16−2 for k.
RoseWind [281]

From figure 1: -

From figure 2: 12

From figure 3: 6

From figure 4: -12

From figure 5: -2

Step-by-step explanation:

We need to solve the equation 4k-6=-2k-16-2 for k.

Solving:

4k-6=-2k-16-2\\4k-6=-2k-18\\4k=-2k-18+6\\4k=-2k-12\\4k+2k=-12\\6k=-12\\k=\frac{-12}{6}\\k=-2

So, the options to be selected are:

From figure 1: -

From figure 2: 12

From figure 3: 6

From figure 4: -12

From figure 5: -2

Keywords: Solving equations

Learn more about Solving equations at:

  • brainly.com/question/1616605
  • brainly.com/question/2586096
  • brainly.com/question/4046256

#learnwithBrainly

7 0
3 years ago
What is .61 in word form
worty [1.4K]
Sixty-one hundredths
3 0
3 years ago
Read 2 more answers
Other questions:
  • the volume V of a gas at a constant temperature varies inversely with the pressure P. when the volume is 100 cubic inches the pr
    14·1 answer
  • suppose you deposit $3000 in a savings account that pays interest at an annual rate of 4%. if no other money is added or withdra
    7·1 answer
  • What are the values of a and b?
    10·2 answers
  • Isaiah and Wanda both went bowling last weekend, but not together. Isaiah went during open bowling time, paying $16 for shoe ren
    9·1 answer
  • One meter of electrical cord costs 3 dollars. How much should one pay for 4 meters?? Please help me out here.
    9·1 answer
  • Find x1 and x2.
    8·1 answer
  • If P(A)=0.3, then the probability of the complement of A is ?
    10·1 answer
  • The combined area of the 3 windowpanes and frame shown below is 924 in.2. The frame is of uniform width. What is the side length
    8·1 answer
  • Name the fractions from least to greatest: <br> 40/97, 1/6, 3/41
    10·2 answers
  • 63°+4x+13=180<br> Find the m
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!