Problem I’ve just done Project Euler question 10: Find the sum of all the primes below two million. I get […]

Problem I’ve just done Project Euler question 10: Find the sum of all the primes below two million. I get […]

Problem Just because I’ve never written a real Sieve of Eratosthenes, I decided I should probably write one just to […]

Problem How can I improve and optimise this code? #include <iostream> #include <vector> std::vector<bool> sieve_of_eratosthenes(int n) { std::vector<bool> primes(n+1, true); […]

Problem I have written this Sieve of Eratosthenes. This is a bit of software that will find all of the […]