speedup a007 by prebuilt prime table