Algorithm to find prime factors of very big numbers