string-hash.c
int is_prime(unsigned long int n) {
    if (n <= 1)
        return 0;
    if (n <= 3)
        return 1;
    if (n % 2 == 0 || n % 3 == 0)
        return 0;
    for (unsigned long int i = 5; i * i <= n; i = i + 6)
    {
        if (n % i == 0 || n % (i + 2) == 0)
        {
            return 0;
        }
    }
    return 1;
}
//To check if an inputted number os prime or not.
To check if an inputted number os prime or not.
To check if an inputted number os prime or not .
int is_prime(unsigned long int n) {
    if (n <= 1)
        return 0;
    if (n <= 3)
        return 1;
    if (n % 2 == 0 || n % 3 == 0)
        return 0;
    for (unsigned long int i = 5; i * i <= n; i = i + 6)
    {
        if (n % i == 0 || n % (i + 2) == 0)
        {
            return 0;
        }
    }
    return 1;
}
int is_prime ( unsigned long int n ) { if ( n <= 1 ) return 0 ; if ( n <= 3 ) return 1 ; if ( n % 2 == 0 || n % 3 == 0 ) return 0 ; for ( unsigned long int i = 5 ; i * i <= n ; i = i + 6 ) { if ( n % i == 0 || n % ( i + 2 ) == 0 ) { return 0 ; } } return 1 ; }
To check if an inputted number os prime or not.
To check if an inputted number os prime or not .