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
I totally blanked and forgot how to do this. Can anyone help
neonofarm [45]

Answer:

The answer is 82 unit total

Step-by-step explanation:

You can take the entire shape and break it down to normal shapes such as squares and triangles. Then you can use the formula of these shapes to find the area. Last you add all the unit together and that's the answer

8 0
3 years ago
Read 2 more answers
Which fractions are equivalent to 15/20
Digiron [165]

Answer:

\frac{3}{4}, \frac{30}{40}, \frac{45}{60}, \frac{60}{80}....e.t.c are all equivalent fractions

Step-by-step explanation:

For the answer you need to know bout equivalent fractions

TO find equivalent fractions you have to multiply the numerator and denominator by the same amount

E.x.\frac{15}{20}=\frac{(15)(2)}{(20)(2)} =\frac{30}{40}

Therefore \frac{30}{40} is an equivalent fraction

8 0
3 years ago
Show work. This is a BC calculus problem.
stepan [7]

Answer:

D.

Step-by-step explanation:

Remember that the limit definition of a derivative at a point is:

\displaystyle{\frac{d}{dx}[f(a)]= \lim_{x \to a}\frac{f(x)-f(a)}{x-a}}

Hence, if we let f(x) be ln(x+1) and a be 1, this will yield:

\displaystyle{\frac{d}{dx}[f(1)]= \lim_{x \to 1}\frac{\ln(x+1)-\ln(2)}{x-1}}

Hence, the limit is equivalent to the derivative of f(x) at x=1, or f’(1).

The answer will thus be D.

5 0
3 years ago
Instead of dividing 400 by 16, Chip thought of an equivalent division problem that was easier for him to divide. Write an equiva
galben [10]
You can divided each by 4 and get this easy answer..

100 divided by 4= 25. Hope it helps!
5 0
4 years ago
In the movie hidden figures what does the cop do to or For the three ladies
antoniya [11.8K]

Answer:

the cop offers them a police escort all the way to Langley

Step-by-step explanation:

having a car full of african americans in a car chase a police all the way too Langley.

3 0
3 years ago
Other questions:
  • The line plot below shows the amount of cereal shyanne ate in 5 days. What is the total number of cups of cereal that shyanne at
    7·2 answers
  • The area of a square is 400 square feet, find the perimeter.
    14·1 answer
  • What is the area of polygon XYZ?
    15·1 answer
  • Lines m and p are perpendicular. if the slope of line m is -3 what is the slope of line p?
    10·2 answers
  • What is the difference? 5x/x-2 - x+4/2x?
    9·2 answers
  • We want to factor the following expression: 25x^2−36y^8 We can factor the expression as (U+V)(U-V) where U and V are either cons
    7·1 answer
  • Please help me answer #2
    15·2 answers
  • Can someone help me with this pls. I’ll give brainliest
    15·1 answer
  • Please help I need the answer fast !
    15·1 answer
  • Find the measure of angle 7. <br><br> (WILL MARK BRAINLIST JUST HELP)
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!