mirror of
https://github.com/TheAlgorithms/C-Plus-Plus.git
synced 2026-02-10 05:57:14 +08:00
fixed bug
If used prime numbers it occurred an error.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user