27 for (
int i = 2; i <= N; i++) {
29 for (
int j = 2 * i; j <= N; j += i)
isprime[j] =
false;
33 for (
int i = 2; i <= N; i++) {
64 std::cout <<
"\t\tComputes the prime factorization\n\n";
65 std::cout <<
"Type in a number: ";
74 std::cout << it.first <<
" " << it.second << std::endl;
void prime_factorization(int num)
std::vector< std::pair< int, int > > factors
std::vector< int > prime_numbers
void SieveOfEratosthenes(int N)