Posted on

Build ADT List Application 2 Counting Primes 40 ptsSuppose you are interested in finding prime

Build ADT List Application 2: Counting Primes [40 pts]Suppose you are interested in finding prime numbers between 2 and 15 both inclusive.The algorithm proceeds in rounds. In each round a single prime is discovered fromCandidates list & removed, as also numbers that have that prime as a factor. For this, youwill need to create 3 lists, a Candidates list, a Composites list and a Primes listAssume Candidates list is as follows:Candidates: 2 3 4 5 6 7 8 9 10 11 12 13 14 15Step 1:Go through Candidat

Read More