Design an algorithm to generate sequence of positive integer


Discuss the below:

Q: Design an algorithm to generate the sequence of positive integers (in increasing order) whose only prime divisors are 2 and 3; that is, your program should produce the sequence 2, 3, 4, 6, 8, 9, 12, 16, 18, 24, 27, ... . Does your program represent an algorithm in the strict sense?

 

 

Solution Preview :

Prepared by a verified Expert
Data Structure & Algorithms: Design an algorithm to generate sequence of positive integer
Reference No:- TGS01939330

Now Priced at $20 (50% Discount)

Recommended (98%)

Rated (4.3/5)