add
use prime factorization approach