This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrimeThread extends Thread { | |
long minPrime; | |
PrimeThread(long minPrime) { | |
this.minPrime = minPrime; | |
} | |
public void run() { | |
// compute primes larger than minPrime | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class PrimeRun implements Runnable { | |
long minPrime; | |
PrimeRun(long minPrime) { | |
this.minPrime = minPrime; | |
} | |
public void run() { | |
// compute primes larger than minPrime | |
} | |
} |