34 Test Functions for Small Integers

 34.1 Test Integer Square Root
 34.2 Primality Test
 34.3 Factorization, Möbius and Euler Totient Function

In this file we test src/sitools/siprimes.as.nw. and src/sitools/sitools.as.nw.

753* 13+   749
-------------------------------------------------------------------
----
---- Combinat
---- Copyright (C) Ralf Hemmecke <ralf@hemmecke.de>
---- svn co svn://svn.risc.uni-linz.ac.at/hemmecke/combinat/
----
-------------------------------------------------------------------

#assert DontNeedLibraryTestCases
#include "testcases"

TestSmallIntegerTools: TestCaseType with {
#include "sitools.signatures.as"
} == add {
        import from TestCaseTools;
        macro T == SparseIndexedPowerProduct(I, I);
        test sqrt 754a
        test prime 757a
        test factor 759a
        test Euler totient 761b
}

Defines:
TestSmallIntegerTools, never used.

Uses I 47 and SparseIndexedPowerProduct 506.