Skip to content

Instantly share code, notes, and snippets.

View mdnurahmed's full-sized avatar

MD Nur Ahmed mdnurahmed

  • Dhaka , Bangladesh
View GitHub Profile
@PanagiotisPtr
PanagiotisPtr / Sieve.cpp
Created April 21, 2017 16:25
Sieve of Eratosthenes implementation with Bitset in C++
#include <iostream>
#include <bitset>
#include <cmath>
using namespace std;
int main(){
const int sieve_size = 1024;
bitset<sieve_size> sieve;
sieve.flip();