Skip to content

Instantly share code, notes, and snippets.

View TotalTechGeek's full-sized avatar

Jesse Mitchell TotalTechGeek

View GitHub Profile
@TotalTechGeek
TotalTechGeek / ExaggeratedFizzBuzz.js
Last active August 3, 2017 10:40
Exaggerated FizzBuzz Algorithm
// Overexaggerated Configurable FizzBuzz
// Written as a Joke.
// Configuration Format Notes for the Number Parser.
/*
Layout of Configuration: { default : function, rules : array }
default - A function that executes on anything that doesn't complete a rule.
rules - an array of rules that are tested on a number.
Layout of Config Rules -> [Output String|Function, Boolean Function, Terminate Boolean]
Output String|Function - Either a string to print out, or a function that will return a string. The function receives 3 parameters (i,min,max).
#include <boost/multiprecision/cpp_int.hpp>
#include <boost/multiprecision/miller_rabin.hpp>
#include <boost/math/special_functions/prime.hpp>
#include <boost/format.hpp>
#include <boost/lexical_cast.hpp>
#include <fstream>
#include <iostream>
#include <vector>
#include <string>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/stat.h>
void printC(unsigned char* c, int size)
{
for(int i = 0; i < size; i++)
{
printf("%02x", c[i]);