Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
AdamTReineke
on Dec 23, 2014
|
parent
|
context
|
favorite
| on:
FizzBuzz: the test helps filter out the 99.5% of p...
Rosetta Code has some examples of different methods and different languages. The most naïve way is trial division:
http://rosettacode.org/wiki/Primality_by_trial_division
Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: