Use int64 for lots of calculations.
phi[] is now properly populated for bound = 100,000.