diff options
| author | Paul Jungeblut <paul.jungeblut@gmail.com> | 2017-02-24 11:01:57 +0100 |
|---|---|---|
| committer | Paul Jungeblut <paul.jungeblut@gmail.com> | 2017-02-24 11:01:57 +0100 |
| commit | 376a77de38a4b552200734bb3c721f0fd01dfc72 (patch) | |
| tree | 8d9de389f56d52313616be47fc72c2309d592b47 /math/primeSieve.cpp | |
| parent | cbc62f94c241b5567b1e1dfafad837710ed4961d (diff) | |
Lot's of small changes to math chapter.
Diffstat (limited to 'math/primeSieve.cpp')
| -rw-r--r-- | math/primeSieve.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/math/primeSieve.cpp b/math/primeSieve.cpp index 656a597..7e8b288 100644 --- a/math/primeSieve.cpp +++ b/math/primeSieve.cpp @@ -2,7 +2,7 @@ #define N 100000000 // Bis 10^8 in unter 64MB Speicher. bitset<N / 2> isNotPrime; -inline bool check(int x) { // Diese Methode zum Lookup verwenden. +inline bool isPrime(int x) { // Diese Methode zum Lookup verwenden. if (x < 2) return false; else if (x == 2) return true; else if (!(x & 1)) return false; |
