Skip to content

Instantly share code, notes, and snippets.

@skyler
Created April 28, 2011 16:06
Show Gist options
  • Save skyler/946656 to your computer and use it in GitHub Desktop.
Save skyler/946656 to your computer and use it in GitHub Desktop.
class PrimeRun implements Runnable {
long minPrime; <!-- note not final!
PrimeRun(long minPrime) {
this.minPrime = minPrime;
}
public void run() {
// compute primes larger than minPrime
. . .
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment