working prime factors