Skip to content

Instantly share code, notes, and snippets.

@spencerjanssen
spencerjanssen / clucky.c
Created October 20, 2015 08:13
clucky.c: fast lucky number sieve
#include <stdio.h>
#define QMAX 100000001
// we pretend these are 1 indexed, gross...
int seq[QMAX];
int count[QMAX];
// could replace this with a no-op and print the whole thing at the end
void emit_result(int n){