This file contains hidden or 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 <memory> | |
#include <deque> | |
#include <cmath> | |
#include <cstring> | |
/* | |
the algorithm used here is taken and modified from: | |
https://stackoverflow.com/questions/9625663/calculating-and-printing-the-nth-prime-number/9704912#9704912 | |
There are many more room of possible imprevement. |
This file contains hidden or 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
// erick[dot]wahyutama[at]gmail.com | |
// Ery E. Wahyutama | |
#include <unordered_map> | |
// https://github.com/json-c/json-c | |
#include <json-c/json.h> | |
#ifndef byte | |
typedef unsigned char byte; | |
#endif |