WillPanSUTD / isprime

A faster than average C/C++ function to detect if a number is prime.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

isprime

A faster than average C/C++ function to detect if a number is prime.

The code is actually C++, but you can convert it to C by replacing all the "bool" references with "int". Replace "true" and "false" with 0 and 1 respectively.

About

A faster than average C/C++ function to detect if a number is prime.


Languages

Language:C++ 100.0%