https://github.com/en10/primes-c
Primes in C
https://github.com/en10/primes-c
c primes python
Last synced: 3 months ago
JSON representation
Primes in C
- Host: GitHub
- URL: https://github.com/en10/primes-c
- Owner: EN10
- Created: 2019-03-10T12:16:15.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-16T10:34:12.000Z (about 7 years ago)
- Last Synced: 2025-03-27T04:32:07.217Z (over 1 year ago)
- Topics: c, primes, python
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Primes-C
Primes in C
#include
int main(){
int primesupto = 100;
int i,j;
int isprime = 1;
for (i=2; i` \
* `i,j` as `double` \
* `i%j` becomes `fmod(i,j)` \
* `"%i \n",i` becomes `"%i \n",(int)i`
### Benchmark:
time python primes.py
time ./a.out