Chapter 8: Problem 34
Write a probabilistic algorithm that factorizes any integer using the functions prime and factor. Function prime is a boolean function that returns "true" if a given integer is a prime number and returns "false" if it is not. Function factor is a function that returns a nontrivial factor of a given composite integer. Analyze your algorithm, and show the results using order notation.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.