Nothing special about it, its just a mathmatical fact for prime numbers which i implement to reduce time complexity to O(1) And this is also my first programmer i uploaded here so i just want it to stay here only <3
iamfaiz123 / fastest-algorithm-to-check-a-number-is-prime Goto Github PK
View Code? Open in Web Editor NEWthis algo takes constant time irrespective of input to check if its a prime of note
License: Apache License 2.0