Skip to content

serghov/MpiPrimes

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 

Repository files navigation

MPI Prime Numbers

The c++ program finds prime numbers between 1 and and 10000x[argument] using MPI. Sure finding prime numbers in parallel using O(n²) is not nearly the most optimal way, but is a good example for usage of MPI.

Usage

No makefile so you will have to build by hand

mpic++ main.cpp -o exec
mpiexec -np <number of processes> ./exec <input>

About

Getting prime numbers with MPI

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages