Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature] Add Unique Prime Number Calculator #1095

Closed
4 of 7 tasks
debangi29 opened this issue Jun 2, 2024 · 8 comments · Fixed by #1589
Closed
4 of 7 tasks

[Feature] Add Unique Prime Number Calculator #1095

debangi29 opened this issue Jun 2, 2024 · 8 comments · Fixed by #1589
Assignees
Labels
calculator addition 📱 Addition of new calculator enhancement ✨ New feature or request gssoc GSSOC Open Source Program level3 Advanced task

Comments

@debangi29
Copy link
Contributor

debangi29 commented Jun 2, 2024

Description

A "unique prime" is a prime number that remains prime when any single digit is removed from it.
I can add an unique prime number calculator

  1. It can tell if a number is an unique prime number or not
  2. It can print all the unique prime numbers in a given range

Screenshots

No response

Screenshots

No response

Checklist

  • I have checked the existing issues.
  • I follow Contributing Guidelines of this project.
  • I am a GSSOC'24 contributor.
  • I am a IWOC'24 contributor.
  • I am a JWOC'24 contributor.
  • I am a SWOC'24 contributor.

Code of Conduct

Copy link

github-actions bot commented Jun 2, 2024

Hey @debangi29, Welcome to the project CalcDiverse! 🎊
Thanks for opening an issue! 🙌 Please wait for the issue to be assigned. Happy Coding!! ✨

@Rakesh9100 Rakesh9100 added the status: standby ✊ This issue is on hold label Jun 6, 2024
@Rakesh9100
Copy link
Owner

Pls complete your assigned issues @debangi29

@Rakesh9100 Rakesh9100 changed the title [Feature] Add unique Prime number Calculator [Feature] Add Unique Prime Number Calculator Jun 6, 2024
@Rakesh9100 Rakesh9100 added up for grab ✋ This issue is up to be assigned and removed status: standby ✊ This issue is on hold labels Jun 28, 2024
@bharat-c27
Copy link
Contributor

bharat-c27 commented Jun 29, 2024

Hello @Rakesh9100 and @jessicachawla, I would love to contribute to the issue.
Can you please assign me this issue, so that I can start working on this.

As per my understanding I have mentioned 2 examples, please correct me if I am wrong.

23 is a prime number.
Removing the digit '2' gives 3, which is prime.
Removing the digit '3' gives 2, which is prime.
Since removing any digit results in a prime number, 23 is a unique prime.

97 is a prime number.
Removing the digit '9' gives 7, which is prime.
However, removing the digit '7' gives 9, which is not prime.
Therefore, 97 is not a unique prime.

@jessicachawla
Copy link

jessicachawla commented Jun 30, 2024

@Rakesh9100 this issue can be assigned.

@bharat-c27 just fyi it's for greater than 99 as well.
202 is not a unique as when we remove 0 it will become 22. So any of the three numbers can be removed and then consider. Similarly for 4 digit, 5 digit numbers and so on

@bharat-c27
Copy link
Contributor

Okay sure !!

@Rakesh9100
Copy link
Owner

Go ahead @bharat-c27

@Rakesh9100 Rakesh9100 added gssoc GSSOC Open Source Program and removed up for grab ✋ This issue is up to be assigned labels Jul 6, 2024
@bharat-c27
Copy link
Contributor

Sure @Rakesh9100, I will start working on this right now onwards.
But I want to request you to assign the issue #1317 to me, because I am done with coding part. Once you assign me the issue I will raise the PR for that.

Thank you!!

Copy link

Hello @debangi29! Your issue #1095 has been closed. Thank you for your contribution!! 🙌

@Rakesh9100 Rakesh9100 added enhancement ✨ New feature or request calculator addition 📱 Addition of new calculator level3 Advanced task labels Jul 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
calculator addition 📱 Addition of new calculator enhancement ✨ New feature or request gssoc GSSOC Open Source Program level3 Advanced task
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants