avinash201199 / avinash201199/DSA-Questions

DSA- Number Theory in C++

Open
#35 2 comments 0 reactions 1 assignee Claimed by @jishanaik View on GitHub
good first issue hacktoberfest
Dominant language
C++
Stars
88
Forks
167
PR merge metrics
No merged PRs in 30d

Description

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!

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.