An open API service indexing awesome lists of open source software.

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

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