Skip to content

About

Calculates prime numbers as needed in a static context.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

LazyPrime is a class that stores a list of prime numbers in a static data member.

Each instance of LazyPrime will get its primes from the static list, in ascending order.

When an instance reaches the end of the list, the list is extended.

The static nature of the prime number list ensures that duplicates are not generated for programs that require multiple instances of sequential primes.

About

Calculates prime numbers as needed in a static context.

Topics

Resources

Stars

0 stars

Watchers

1 watching

Forks

Contributors

Languages