Saved pastes by lglasson:
1 2 3 4 5
#include <stdio.h> int main(void){ int i; for(i=0; i<100; i++) printf("%d %s\n", i, i%3==0 ? (i%5==0 ? "Fizz-Buzz" : "Fizz") : (i%5==0 ? "Buzz" : ""));
//Prime tester //Simple algorithm //By Logan Glasson 2009 #include <stdio.h> #define MAX_P 1000