What is the complexity of these nested for loops:
for(int p=2; p<=LENGTH; p++){
for(int i=1; i*p <= LENGTH; i++)
{
//some code
}
}
What is the complexity of these nested for loops:
for(int p=2; p<=LENGTH; p++){
for(int i=1; i*p <= LENGTH; i++)
{
//some code
}
}