How do I make this C code run faster on determining whether a large number is a prime number or not?

前端 未结 0 1359
北荒
北荒 2021-01-30 05:13
#include 
#include 

bool isPrime(long long int n) {
    if(n <= 1) {
        return false;
    } else {
        for(long long int i = 2;         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题