EvgenyKarkan / EKAlgorithms

EKAlgorithms contains some well known CS algorithms & data structures.
MIT License
2.42k stars 362 forks source link

[NSNumber primeNumbersFromSieveEratosthenesWithMaxNumber:] returns non-prime number (zero) #98

Closed shrtlist closed 8 years ago

shrtlist commented 8 years ago

[NSNumber primeNumbersFromSieveEratosthenesWithMaxNumber:] returns non-prime number (zero):

2016-02-21 06:23:50.983 EKAlgorithmsExamples[88910:27191955] Primes from sieve (
    0,
    2,
    3,
    5,
    7,
    11,
    13,
    17,
    19,
    23,
    29,
    31,
    37,
    41
)