Skip to content

CodeLearnr/Method_Overload_Prime_Generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Method_Overload_Prime_Generator

Create a classes with overloaded methods to represent a Prime Generator.

  1. Create a method to determine if a number is a prime, and four overloaded methods to generate primes.
  2. Method without a parameter should generate and display a random prime, method with one integer parameter n will generate and display n random primes, method with two integer parameters (a, b; a<=b) will generate all primes in the range(a, b), and method with three integer parameters(c, a, b; c>=1, a<=b) will generate and display the first c primes(if exists) in the range(a, b).
  3. Complete all the incomplete methods from the class. And do not alter the Program class.

About

Create a classes with overloaded methods to represent a Prime Generator.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages