---
# System prepended metadata

title: pyton group en - fastest prime number code

---

# pyton group en - fastest prime number code

> let's find which code can find if 7919 is a prime number

please send us your `%timeit` results

| Student No | Website | Time |
|------------|----------|-----|
|  | function from lecture    | 152 µs ± 2.7 µs |
|  | SO "Fastest way of testing if a number is prime?" [link](https://stackoverflow.com/questions/46841968/fastest-way-of-testing-if-a-number-is-prime) | 9.3 µs ± 156 ns |
| Lamees | Python Pool, "6 Best Ways To Check.." [link](https://www.pythonpool.com/check-if-number-is-prime-in-python/) | 5.2 µs ± 406 ns |
| Sinem Bıyıklı | Analysis of Different Methods to find Prime Number in Python [link](https://www.geeksforgeeks.org/analysis-different-methods-find-prime-number-python/) | 3.9 µs ± 363 ns |
| Hesham Ahmed | Code Review, "Determine if number is a prime number" [link](https://codereview.stackexchange.com/questions/166038/determine-if-number-is-a-prime-number) | 15.7 μs ± 120 ns |
| Furkan Çeşitler | ||
| Imran Çağrı | Geeks for geeks, "Python program to check whether.." [link](https://www.geeksforgeeks.org/python-program-to-check-whether-a-number-is-prime-or-not/)| 29.7 ns ± 3.45 ns | 
| Huma Coskun | SO "Fastest way of testing if a number is prime?" [link](https://stackoverflow.com/questions/46841968/fastest-way-of-testing-if-a-number-is-prime ) | 13.5 μs ± 577 ns |
| Berke Eroglu | | 404 µs ± 8.4 µs |
| Halim Arda | Python Pool, "6 Best Ways To Check.." [link](https://www.pythonpool.com/check-if-number-is-prime-in-python/) | 3.05 µs ± 270 ns | 
| Merve Dinç| | 13.1 µs ± 188 ns |
|Irem Yesilyurt | SO "Fastest way to list all primes below N" [link](https://stackoverflow.com/questions/2068372/fastest-way-to-list-all-primes-below-n) | 574 ns ± 22.5 ns |
| Ozge Demirel | Datagy.io [link](https://datagy.io/python-prime-numbers/) | 6.02μ ± 591ns |

