-
Notifications
You must be signed in to change notification settings - Fork 0
algocpp::math::isprime
sakamotor edited this page Jul 17, 2023
·
1 revision
Function for fast determination of prime numbers
This program is by @asksaito of Qiita. Thank you!
Otherwise,
#include <iostream>
#include <algocpp/math.hpp>
using namespace std;
int main()
{
cout << boolalpha;
// false
cout << algocpp::math::isprime(15) << endl;
// true
cout << algocpp::math::isprime(17) << endl;
}