#pragma once
#include <vector><--- Include file: not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include "internal/dev_env.hpp"
#include "adaptor/vector.hpp"
namespace uni {
template<class T>
vector<T> divisors_sieve(const T k) noexcept(NO_EXCEPT) {
vector<T> res;
for(T i=1; i*i<=k; ++i) {
if(k%i == 0) {
res.emplace_back(i);
if(i*i < k) res.emplace_back(k/i);
}
}
res.sort();
return res;
}
} // namespace uni