This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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]); |