mirror of
https://hub.njuu.cf/TheAlgorithms/C-Plus-Plus.git
synced 2023-10-11 13:05:55 +08:00
fixed bug
If used prime numbers it occurred an error.
This commit is contained in:
parent
8b2bab4d11
commit
cdb057f613
@ -30,15 +30,6 @@ void SieveOfEratosthenes(int N)
|
||||
|
||||
}
|
||||
|
||||
void printDebug()
|
||||
{
|
||||
// Prime factors with their powers in the given number in new line
|
||||
for(auto it: prime_numbers)
|
||||
{
|
||||
cout<< it << endl;
|
||||
}
|
||||
}
|
||||
|
||||
// Prime factorization of a number
|
||||
void prime_factorization(int num)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user