Horje
prime number c++ Code Example
prime number c++
template<class T> bool isPrime(T n) 
{ 
	T i;
  	if(i<2) return false;
	for(i = 2; i * i <= n; i++) { 
    	if(n % i == 0)  return false; 
    } 
	return true; 
}




Cpp

Related
Segmentation fault (core dumped) Code Example Segmentation fault (core dumped) Code Example
memory leak in cpp Code Example memory leak in cpp Code Example
c++ changing string to double Code Example c++ changing string to double Code Example
automatic legend matlab Code Example automatic legend matlab Code Example
c++ random number Code Example c++ random number Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
9