Added guide article for Prime Number Generator (#22161)

Replaced stub with guide article for Prime Number Generator
This commit is contained in:
Nishant Mishra
2018-11-19 00:31:42 +05:30
committed by nik
parent e8254ea330
commit ee0e4953b8

View File

@ -3,13 +3,14 @@ title: Prime Number Generator
--- ---
## Prime Number Generator ## Prime Number Generator
This is a stub. <a href='https://github.com/freecodecamp/guides/tree/master/src/pages/tools/prime-number-generator/index.md' target='_blank' rel='nofollow'>Help our community expand it</a>. A prime number generator is used to generate prime numbers. Prime number generating algorithms are used extensively in computer science for various applications, examples: [Hashing](https://en.wikipedia.org/wiki/Hash_table), [Public-key Cryptography](https://en.wikipedia.org/wiki/Public-key_cryptography), etc.
<a href='https://github.com/freecodecamp/guides/blob/master/README.md' target='_blank' rel='nofollow'>This quick style guide will help ensure your pull request gets accepted</a>. Here are few online prime numbers generators:
* [Wolfram Alpha](https://www.wolframalpha.com/examples/mathematics/number-theory/prime-numbers/)
* [Browserling's prime number generator](https://www.browserling.com/tools/prime-numbers)
<!-- The article goes here, in GitHub-flavored Markdown. Feel free to add YouTube videos, images, and CodePen/JSBin embeds --> There are various algorithms to generate prime numbers. Here's a link to one of the most efficient algorithms to generate prime numbers less than a number "n"
* [Sieve of Eratosthenes algo to generate prime numbers](https://www.geeksforgeeks.org/sieve-of-eratosthenes/)
#### More Information: #### More Information:
<!-- Please add any articles you think might be helpful to read before writing the article --> For more information on prime numbers, look here: [Prime Number Chart](https://guide.freecodecamp.org/tools/prime-number-chart)