Skip to content

Conversation

@manikonda-anjali
Copy link

@manikonda-anjali manikonda-anjali commented Oct 30, 2025

Implemented a simple algorithm in Java to check whether a number is prime or not.

  • Added a new file: PrimeCheck.java in src/main/java/com/thealgorithms/math/
  • The program defines a function isPrime(int n) that checks for primality.
  • Included a main method to test the function with sample input.

This implementation follows Java naming conventions and contributes to the Math algorithms section.

  • I have read CONTRIBUTING.md.
  • This pull request is all my own work -- I have not plagiarized it.
  • All filenames are in PascalCase.
  • All functions and variable names follow Java naming conventions.
  • All new algorithms have a URL in their comments that points to Wikipedia or other similar explanations.
  • All new code is formatted with clang-format -i --style=file path/to/your/file.java

@codecov-commenter
Copy link

Codecov Report

❌ Patch coverage is 0% with 10 lines in your changes missing coverage. Please review.
✅ Project coverage is 78.32%. Comparing base (bb6385e) to head (3819941).

Files with missing lines Patch % Lines
...c/main/java/com/thealgorithms/math/PrimeCheck.java 0.00% 10 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #6993      +/-   ##
============================================
- Coverage     78.35%   78.32%   -0.04%     
- Complexity     6615     6616       +1     
============================================
  Files           746      747       +1     
  Lines         22015    22025      +10     
  Branches       4320     4323       +3     
============================================
+ Hits          17249    17250       +1     
- Misses         4078     4088      +10     
+ Partials        688      687       -1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

2 participants