input: Write a function to determine if a given number is a prime or composite number. If the number is prime, return True; otherwise, return False. If the number is less than 2, return False.
  class PrimeNumber:
      def __init__(self, num):
          self.num = num
  
      def is_prime(self):
          if self.num < 2:
              return False
          for i in range(2, int(self.num**0.5) + 1):
              if self.num % i == 0:
                  return False
          return True
  
  assert PrimeNumber(10).is_prime() == False
  assert PrimeNumber(7).is_prime() == True
  assert PrimeNumber(1).is_prime() == False
  assert PrimeNumber(2).is_prime() == True
  assert PrimeNumber(29).is_prime() == True
output: def is_prime(self):
      if self.num < 2:
          return False
      for i in range(2, int(self.num**0.5) + 1):
          if self.num % i == 0:
              return False
      return True