links to this page:
Squeak for Mathematicians
All Projects
Swiki Page List
Swiki short page list
Number Theory
Last updated at 2:24 pm UTC on 16 January 2006
Math-NumberTheory.zip
Examples of use
(I use italics for the results of printIt)
12345678901 isPrime
false
12345678901 factorize
a Dictionary(857->1 14405693->1 )
12345678901 nextPrime
12345679649
s := ChineseRemainderSystem new
s add: 5 mod: 7
s add: 3 mod: 11
s add: 10 mod: 13
s solve
894
158 jacobi: 235
-1
7 jacobi: 31
1 (this means 7 is a quadratic residue modulo 31)