Why is this 'optimized' program runs at the same speed like the regular version - Prime checking Python 3.8.2

前端 未结 0 494
心在旅途
心在旅途 2021-01-06 06:56

Given this plain is_prime1 function which checks all the divisors from 1 to sqrt(p) with some bit-playing in order to avoid even numbers which are of-course not

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