Angie A.

asked • 10/04/20

Discrete Mathmatics Contradiction & Contraposition

Construct a sieve of Eratosthenes for the numbers from 2 to 100. (Write all the integers from 2 to 100. Cross out all multiples of 2 except 2 itself, then all the multiples of 3 except 3 itself, then all multiples of 5 except 5 itself, and so forth. Continue crossing out multiples of each successive prime number up to 100. The numbers that are not crossed out are the prime numbers from 2 to 100.) Use the test for primality and your sieve of Eratosthenes to determine whether the following numbers are prime.

Test for Primality

Given an integer n > 1, to test whether n is prime check to see if it is divisible by a prime number less than or equal to its square root. If it is not divisible by any of these numbers, then it is prime.

(a)

Let n = 8,381.

How many prime numbers are less than or equal to the square root of n?


Is n divisible by any of these numbers?

Yes No     

Is n prime?

Yes No     

(b)

Let n = 9,157.

How many prime numbers are less than or equal to the square root of n?


Is n divisible by any of these numbers?

YesNo     

Is n prime?

YesNo     

(c)

Let n = 8,629.

How many prime numbers are less than or equal to the square root of n?


Is n divisible by any of these numbers?

YesNo     

Is n prime?

YesNo     

(d)

Let n = 9,867.

How many prime numbers are less than or equal to the square root of n?


Is n divisible by any of these numbers?

YesNo     

Is n prime?

YesNo     



1 Expert Answer

By:

Patrick B. answered • 10/04/20

Tutor
4.7 (31)

Math and computer tutor/teacher

Angie A.

where's the link?
Report

10/04/20

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.