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 9,367. = How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes O No (b) Let n = 9,137. How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes O No (c) Let n = 8,627. How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes O No (d) Let n = How many prime numbers are less than or equal to the square root of n? 7,293.

Advanced Engineering Mathematics
10th Edition
ISBN:9780470458365
Author:Erwin Kreyszig
Publisher:Erwin Kreyszig
Chapter2: Second-order Linear Odes
Section: Chapter Questions
Problem 1RQ
icon
Related questions
Question

need help

(d) Let n = 7,293.
How many prime numbers are less than or equal to the square root of n?
Is n divisible by any of these numbers?
O Yes
O No
Is n prime?
O Yes
O No
Transcribed Image Text:(d) Let n = 7,293. How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes O No
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 = 9,367.
How many prime numbers are less than or equal to the square root of n?
Is n divisible by any of these numbers?
O Yes
O No
Is n prime?
O Yes
O No
(b) Let n = 9,137.
How many prime numbers are less than or equal to the square root of n?
Is n divisible by any of these numbers?
O Yes
O No
Is n prime?
O Yes
O No
(c) Let n = 8,627.
How many prime numbers are less than or equal to the square root of n?
Is n divisible by any of these numbers?
O Yes
O No
Is n prime?
O Yes
No
(d) Let n = 7,293.
How many prime numbers are less than or equal to the square root of n?
Transcribed Image Text: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 = 9,367. How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes O No (b) Let n = 9,137. How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes O No (c) Let n = 8,627. How many prime numbers are less than or equal to the square root of n? Is n divisible by any of these numbers? O Yes O No Is n prime? O Yes No (d) Let n = 7,293. How many prime numbers are less than or equal to the square root of n?
Expert Solution
trending now

Trending now

This is a popular solution!

steps

Step by step

Solved in 6 steps with 50 images

Blurred answer
Recommended textbooks for you
Advanced Engineering Mathematics
Advanced Engineering Mathematics
Advanced Math
ISBN:
9780470458365
Author:
Erwin Kreyszig
Publisher:
Wiley, John & Sons, Incorporated
Numerical Methods for Engineers
Numerical Methods for Engineers
Advanced Math
ISBN:
9780073397924
Author:
Steven C. Chapra Dr., Raymond P. Canale
Publisher:
McGraw-Hill Education
Introductory Mathematics for Engineering Applicat…
Introductory Mathematics for Engineering Applicat…
Advanced Math
ISBN:
9781118141809
Author:
Nathan Klingbeil
Publisher:
WILEY
Mathematics For Machine Technology
Mathematics For Machine Technology
Advanced Math
ISBN:
9781337798310
Author:
Peterson, John.
Publisher:
Cengage Learning,
Basic Technical Mathematics
Basic Technical Mathematics
Advanced Math
ISBN:
9780134437705
Author:
Washington
Publisher:
PEARSON
Topology
Topology
Advanced Math
ISBN:
9780134689517
Author:
Munkres, James R.
Publisher:
Pearson,