about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorGraham Fawcett <graham.fawcett@gmail.com>2014-10-09 10:02:07 -0400
committerGraham Fawcett <graham.fawcett@gmail.com>2014-10-09 10:02:07 -0400
commit7cf1f55426570582224e0568c838a29c5f7db5ea (patch)
treeffe8b5d2dbea41b61b21caf4e9726a8e35b730f3 /src/rustllvm/RustWrapper.cpp
parente6cfb56a5cee28b08ae9d2dcbb2552497ce922c1 (diff)
downloadrust-7cf1f55426570582224e0568c838a29c5f7db5ea.tar.gz
rust-7cf1f55426570582224e0568c838a29c5f7db5ea.zip
In sieve example, end iteration sooner
The Sieve algorithm only requires checking all elements up to and including the square root of the maximum prime you're looking for. After that, the remaining elements are guaranteed to be prime.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions