Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

can you please answer the blank parts of the question Construct a sieve of Eratosthenes for the numbers from 2 to 100. (Write all the

can you please answer the blank parts of the question image text in transcribed
image text in transcribed
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 except itself, then at the multiples of 3 except itself, then all multiples of sexcept 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 020 SIMME 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 = 6,469 How many prime numbers are less than or equal to the square root of n? Sarung is n divisible by any of these numbers? Yes NO Lali Inautery is n prime? Yes NO Schedule Chade. 1001 (b) Let n = 9,109 (c) Letn 8,663 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 No Is n prime? Yes (d) Letn 7,161 How many prime numbers are less than or equal to the square root of n

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Professional Microsoft SQL Server 2014 Integration Services

Authors: Brian Knight, Devin Knight

1st Edition

1118850904, 9781118850909

More Books

Students also viewed these Databases questions