replace naive implementation by the eabi implementation __aeabi_uidivmod
defined in
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0043d/IHI0043D_rtabi.pdf
use a vector to store previous primes - we follow c code rather than forth
follow c algorithm rather than forth