## Overview

Parallel version of the Sieve of Eratosthenes.

## Files

primes.cpp
  Source code for example.
Makefile
  Makefile for building example.

## Directories

msvs
  Contains Microsoft* Visual Studio* 2005 workspace for building and running the example.
xcode
  Contains Xcode* IDE workspace for building and running the example.

## To Build

General build directions can be found here.

## Usage

`primes [S] [M[:N]] [G]`
  S is the problem size (number of primes). M and N are a range of numbers of threads to be used. G is an optional grain size.
To run a short version of this example, e.g., for use with Intel® Threading Tools:
  Build a debug version of the example (see the build directions).
  Run it with a small problem size and the desired number of threads, e.g., `primes 100000 4`.

Up to parent directory

Copyright © 2005-2010 Intel Corporation. All Rights Reserved.

Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are registered trademarks or trademarks of Intel Corporation or its subsidiaries in the United States and other countries.

* Other names and brands may be claimed as the property of others.