diff --git a/Algorithms.hpp b/Algorithms.hpp index 7662eec..9c35b38 100644 --- a/Algorithms.hpp +++ b/Algorithms.hpp @@ -9,6 +9,7 @@ #include #include +#include namespace mee{ @@ -47,6 +48,7 @@ std::vector getPrimes(T goalNumber){ foundFactor = false; } } + std::sort(primes.front(), primes.end()); return primes; } @@ -66,6 +68,7 @@ std::vector getDivisors(T num){ } } } + std::sort(divisors.front(), divisors.end()); return divisors; }