Is this the best way to check if a number is prime in c++

后端 未结 0 1103
耶瑟儿~
耶瑟儿~ 2021-01-30 16:37

Was trying to do RSA encryption, so im trying to get p and q. So I need to check if they are prime numbers. Is this how to do it, is there a faster more efficient way for bigger

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