Skip to content

Refactor prime number check in prime.py - #12

Open
Shashank23123458867504 wants to merge 3 commits into
coffee-tonight:mainfrom
Shashank23123458867504:main
Open

Refactor prime number check in prime.py#12
Shashank23123458867504 wants to merge 3 commits into
coffee-tonight:mainfrom
Shashank23123458867504:main

Conversation

@Shashank23123458867504

@Shashank23123458867504 Shashank23123458867504 commented Apr 9, 2026

Copy link
Copy Markdown
  • Have fixed the input handling for the code along with adding and improving the prime number check logic.
  • Added proper handling for non-prime edge cases.
  • Refactored the implementation for better readability

Fix input handling and improve prime number check logic.
Added a check for numbers less than or equal to 1.
Optimize prime number check to use square root method.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant