revert to original isPrime implementation as it is way more efficient for 32 bit numbers (maybe because of the logger in aks-go lib)