Adding task implementation for prime factoring