lib number: find primes & prime decomposition