prime-number.c 214 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
#include <stdio.h>

int isPrime(long a) {
  for (long i = 2; i < a; i++)
    if (a % i == 0)
      return 0;

  return 1;
}

int main() {
  int x = isPrime(1000000000000000001L);
  printf("%d\n", x);
  return 0;
}