DSA-Questions icon indicating copy to clipboard operation
DSA-Questions copied to clipboard

DSA- Number Theory in C++

Open jishanaik opened this issue 3 years ago • 2 comments

DSA - Number Theory in C++

Hi, I am Jisha and I am participating in Hactoberfest 2021. I would like to contribute the following question in C++ for number theory. Please assign me this issue.

Question: Find two positive integers A and B, such that A-B=N where N is a given positive integer and the number of distinct prime factors of A and B are equal.

Constraints: 1<= N <= 10^16 1<= A, B <= 10^18

Example: Input: 40 Output: The fisrt number is 80 and second number is 40

Thank you!

jishanaik avatar Sep 30 '21 09:09 jishanaik

You are welcomed to contribute @jishanaik follow me for more updates-https://github.com/avinash201199

avinash201199 avatar Sep 30 '21 09:09 avinash201199

Thank you! @avinash201199

jishanaik avatar Sep 30 '21 09:09 jishanaik