Skip to content

Commit

Permalink
Merge pull request #172 from RaduBratan/cleaner-readme
Browse files Browse the repository at this point in the history
Clean README.md
  • Loading branch information
mawerty authored Jan 12, 2024
2 parents 4863014 + 54aea23 commit 7a2b24d
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
# Is Prime

Welcome to the GitHub repository of an efficient algorithm that determines whether or not a given number is prime, with 95% accuracy in constant time (O(1)). Prime numbers have always been an interesting topic in the field of mathematics and computer science, and detecting them with high accuracy and efficiency is a challenge that has been tackled by many researchers. This algorithm uses the fact that most of the numbers are not prime, to detect a prime number.

## NPM Package
If you are too lazy to implement this complex algorithm in your JS project, you can use our npm package! https://www.npmjs.com/package/is-prime-fast

## Contributing

If you want to help with this project, you can make a pull request with an implementation for a language that hasn't been added before, or at least give it a star.

#### Guidelines

### Guidelines
If it's possible, name your functions and variables `is_prime`. For the main parent class in OO languages, you should also name it `is_prime`. The file itself should be named `main.file_extension`. Also, when you add an implemention for some new language, do remember to create an optimized version of your code and add the new language to the list at the bottom section of the README.

## FAQ
Q: Is this project serious?<br />
A: Yes, this is a 100% serious project.

#### Is this project serious?

Yes, this is a 100% serious project.
Q: Where does 95%+ come from?<br />
A: When we take a random integer between 1 and 2,147,483,647, there are around 105,000,000 prime numbers. So, the chance that our number will be prime is ~4,88%.

#### Where does 95%+ come from?

When we take a random integer between 1 and 2,147,483,647, there are around 105,000,000 prime numbers. So, the chance that our number will be prime is ~4,88%.

#### How does the optimized implementation work?

Thecoderunsfasterwhentherearenouselessspacesandnewlines.
Q: How does the optimized implementation work?<br />
A: Thecoderunsfasterwhentherearenouselessspacesandnewlines.

## The algorithm has been implemented in the following languages:

- Ada
- APL
- Arduino
Expand Down

0 comments on commit 7a2b24d

Please sign in to comment.