|
|
|
|
|
by Francute
3338 days ago
|
|
Well, if you have 1400 lines of 100 prime numbers each one, and a last line to retrieve one of them, if i ask for the 140.000 prime, that solution would be better (in terms of speed) than 10 lines making calcs for any prime number. If you know the possible range of accepted inputs, 1400 loc would be better than 10. One normally think much more loc is worst than a one line solution, but that's, like most answers, always depends. And that's a simple case. There are lot of similar cases one dont realize. |
|