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
Determine the domain of the following graph:
Rama09 [41]

Answer:

         

Step-by-step explanation:

8 0
3 years ago
Gorge bought 30 packs of football cards.
mamaluj [8]
2 packs is the answer
3 0
3 years ago
Read 2 more answers
Help help help please really need help
Galina-37 [17]

Problem 1

<h3>Answer:  B. M<3 would need to double.</h3>

Explanation: This is because angles 3 and 6 are congruent corresponding angles. Corresponding angles are congruent whenever we have parallel lines like this. If they weren't congruent, then the lines wouldn't be parallel. We would need to double angle 3 to keep up with angle 6.

=====================================================

Problem 2

<h3>Answer: D. none of these sides are parallel</h3>

Explanation: We have angles A and C that are same side interior angles, but they add to A+C = 72+72 = 144, which is not 180. The same side interior angles must add to 180 degrees for parallel lines to form. This shows AB is not parallel to CD.

A similar situation happens with angles B and D, since B+D = 108+108 = 216. This also shows AB is not parallel to CD. We can rule out choices A and C.

Choice B is false because AD is a diagonal along with BC. The diagonals of any quadrilateral are never parallel as they intersect inside the quadrilateral. Parallel lines never intersect.

The only thing left is choice D. We would say that AC || BD, since A+B = 72+108 = 180 and C+D = 72+108 = 180, but this isn't listed as an answer choice.

5 0
2 years ago
Helma wants to find the volume of the right rectangular prism shown below. Which equation could Helma use to find V, the volume
sleet_krkn [62]
V = 30*16*12. To find the volume of a rectangular prism, you just multiply the area of the base (side 1 * side 2) by the height of the prism.
5 0
3 years ago
Create a proportion from the given set of numbers: 3,6,7,14
Nina [5.8K]

Answer

3:6=7:14

Step-by-step explanation:

pls make me branliest

3 0
3 years ago
Other questions:
  • Ok so I have fraction box with 1/20 20/25 2/3 and 5/4 the question provide a reason each fraction doesn't belong and to plot the
    15·1 answer
  • How many feet are in 144 inches?<br> Please show work!!!!!
    6·1 answer
  • Neee help on both of them<br>please thank you appreciate it!​
    13·2 answers
  • How do I find X? This is a quadrilateral inside of a circle.
    13·1 answer
  • If all direct materials are added at the end of the production process, and the units have made it 50% of the way through the pr
    12·1 answer
  • I am struggling hard out with linear algebra in math level one
    13·1 answer
  • Last year, a baseball team paid $10 per bat and $6 per glove, spending a total of $520. This year, the prices went up to $15 per
    14·1 answer
  • How many protons does Mg plus 2 have?
    15·1 answer
  • Julio is playing a trivia game. On his first turn, he lost 100 points. On his second turn, he lost 60 points. On his third turn,
    9·1 answer
  • Solve
    6·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!