ALL: Add flint

This commit is contained in:
2014-05-19 00:03:37 +02:00
parent a15ef46ea6
commit d51d8e3652
3752 changed files with 446416 additions and 0 deletions

View File

@@ -0,0 +1,24 @@
#include <cstdlib>
#include <iostream>
#include "arithxx.h"
#include "fmpzxx.h"
using namespace flint;
using namespace std;
int
main(int argc, char * argv[])
{
if (argc != 2)
{
std::cerr << "usage: partitions n\n";
return 1;
}
ulong n;
flint_sscanf(argv[1], "%wu", &n);
std::cout << "p(" << n << ") =\n" << number_of_partitions(n) << '\n';
return 0;
}