An Indian scientist has devised a new way to determine with complete certainty whether a given number is prime, a breakthrough that could obsolete existing internet cryptography protocols.