OKlibrary  0.2.1.6
PrimeNumbers.mac
Go to the documentation of this file.
00001 /* Oliver Kullmann, 20.9.2008 (Swansea) */
00002 /* Copyright 2008, 2009, 2010, 2011 Oliver Kullmann
00003 This file is part of the OKlibrary. OKlibrary is free software; you can redistribute
00004 it and/or modify it under the terms of the GNU General Public License as published by
00005 the Free Software Foundation and included in this library; either version 3 of the
00006 License, or any later version. */
00007 
00021 oklib_include("OKlib/ComputerAlgebra/NumberTheory/Lisp/PrimeNumbers.mac")$
00022 oklib_include("OKlib/ComputerAlgebra/NumberTheory/Lisp/tests/PrimeNumbers.mac")$
00023 
00024 /* **********************************
00025    * Finding and enumerating primes *
00026    **********************************
00027 */
00028 
00029 okltest_primes_interval(primes_interval);
00030 
00031 okltest_primes_first(primes_first);
00032 
00033 okltest_unrank_primes(unrank_primes);
00034 okltest_rank_primes(rank_primes);
00035 okltest_count_primes(count_primes);
00036 
00037 okltest_product_primes(product_primes);
00038 
00039 /* **********************************
00040    * The Prime Number Theorem (PNT) *
00041    **********************************
00042 */
00043 
00044 okltest_Li(Li);
00045 
00046 okltest_count_primes_int_0(count_primes_int_0);
00047 okltest_max_quotient_riemann_error(max_quotient_riemann_error);
00048 okltest_count_primes_int_riemann(count_primes_int_riemann);
00049 
00050 /* **************************
00051    * Additive number theory *
00052    **************************
00053 */
00054 
00055 okltest_n_arithprog_primes_nc(n_arithprog_primes_nc);
00056 okltest_n_arithprog_primes_c(n_arithprog_primes_c);
00057 okltest_ln_arithprog_primes_c(ln_arithprog_primes_c);
00058 
00059 okltest_first_arithprog_primes(first_arithprog_primes);
00060 
00061 /* *****************
00062    * Prime factors *
00063    *****************
00064 */
00065 
00066 okltest_expfact(expfact);
00067