I need a VBA script for a function that will return true if the input is a prime number, false if not.

Job ID: 36747974

Budget: $30 – $250 USD

I want a VBA function called IsPrime(x) that returns true, if x is a prime.