mirror of
https://bitbucket.org/Mattrixwv/projecteulercpp.git
synced 2025-12-06 17:13:59 -05:00
Added a benchmark tool
This commit is contained in:
@@ -36,10 +36,12 @@ private:
|
||||
static int LIMIT; //The top number that will be evaluated
|
||||
std::vector<uint64_t> divisorSum; //Holds the sum of the divisors of the subscript number
|
||||
std::vector<uint64_t> amicable; //Holds all amicable numbers
|
||||
void reserveVectors();
|
||||
public:
|
||||
Problem21();
|
||||
virtual void solve();
|
||||
virtual std::string getString() const;
|
||||
virtual void reset();
|
||||
//Returns a vector with all of the amicable numbers calculated
|
||||
std::vector<uint64_t> getAmicable() const;
|
||||
//Returns the sum of all of the amicable numbers
|
||||
|
||||
Reference in New Issue
Block a user