A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://TheAlgorithms.github.io/C-Plus-Plus/db/d0d/prime__factorization_8cpp_source.html below:

TheAlgorithms/C++: math/prime_factorization.cpp Source File

Go to the documentation of this file. 19

std::vector<std::pair<int, int>>

factors

;

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)


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4