Question: Write a Python function factorMe that takes in a nonnegative semiprime number N which is the product of two prime numbers p and q and

 Write a Python function factorMe that takes in a nonnegative semiprime

Write a Python function factorMe that takes in a nonnegative semiprime number N which is the product of two prime numbers p and q and returns the tuple (p, q) where pS q Example: factorHe(22) = (2, 11) Example: factorMe(3605282209) (59447,60647) This problem has a time-out limit of 1 second and a memory limit of 1MB. The number N in all test-cases will satisfy 4Ns 800000000000000 For example: Test print(factorMe(22)) print(factorMe(3685282209)) (59447, 68647) Result

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!