Add one more check for isPrime().
Based on what was said on the mailing list, an application shouldn't explicitly set its ApplicationName.