Skip to content

syssoft-os/CountPrimesJava

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CountPrimes (Java)

Counting the number of primes between 1 and a specified upper limit (10^8 or more) as an exercise in parallel programming using Java:

  1. Sequential solution using a loop
  2. Sequential solution using Java streams
  3. Parallel solution using Java streams
  4. Parallel solution using a fixed number of threads and AtomicLongs to coordinate them

About

Different approaches to count the number of primes in a given interval using Java

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages