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