Write a Python function that checks if a given number is prime
Company: LTIMindtree
Role: Software Engineer
Category: Coding & Algorithms
Difficulty: easy
Interview Round: Other
Overview: Write a Python function that returns whether a positive integer up to 10,000 is prime. It tests edge cases such as 1, 2 and perfect squares, an efficient divisibility check that avoids testing every smaller number, and reasoning about time complexity.