Search found 1 match

by SpinLinkDom
Fri Apr 23, 2004 9:14 pm
Forum: C++
Topic: How to make this code faster
Replies: 1
Views: 1564

The problem isn't your code, it's your algorithm. As you see, you have 5 imbriqued for boucle so it look like your have a complexity about O(N**5). It look like your are triying to find if a number is relative prime to an other, so it like checking if the gcd is different is 1. So, I would suggest t...

Go to advanced search