Removed outdated comment
This commit is contained in:
committed by
LepilkinaElena
parent
aa84e27e3d
commit
0a5a74ef89
@@ -70,10 +70,6 @@ open class EulerBenchmark {
|
|||||||
for (j in minDiv..maxDiv) {
|
for (j in minDiv..maxDiv) {
|
||||||
if (i % j == 0L) {
|
if (i % j == 0L) {
|
||||||
val res = i / j
|
val res = i / j
|
||||||
// Without toLong() here we have a real nightmare...
|
|
||||||
// in is resolved to Iterable<Int>.contains(Long)
|
|
||||||
// which has O(N) complexity and always gives false
|
|
||||||
// See KT-6978, KT-6950, KT-6361
|
|
||||||
if (res in minDiv.toLong()..maxDiv.toLong()) {
|
if (res in minDiv.toLong()..maxDiv.toLong()) {
|
||||||
return i
|
return i
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user