This file contains hidden or 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
| #include <vector> | |
| #include <iostream> | |
| #include <algorithm> | |
| class Primegen | |
| { | |
| std::vector<int> primes; //store all the primes we've generated so far | |
| void nextprime(void); //add one new prime to the end of the list | |
OlderNewer