Number theory a programmer's guide - Herkommer, Mark A. (McGraw-Hill, 1999)