title: Composite Number
signature: def composite_number(n):
source_py: def composite_number(n):
      if (n <= 1):
          return False
      if (n <= 3):
          return False
      if (((n % 2) == 0) or ((n % 3) == 0)):
          return True
      i = 5
      while ((i * i) <= n):
          if (((n % i) == 0) or ((n % (i + 2)) == 0)):
              return True
          i = (i + 6)
      return False
source_cpp: bool composite_number(int n) {
    if ( n <= 1 ) return false;
    if ( n <= 3 ) return false;
    if ( n % 2 == 0 || n % 3 == 0 ) return true;
    for ( int i = 5;
    i * i <= n;
    i = i + 6 ) if ( n % i == 0 || n % ( i + 2 ) == 0 ) return true;
    return false;
  }
question_info.test_code: import array
  import bisect
  import collections
  import datetime
  import functools
  import heapq
  import itertools
  import math
  import queue
  import re
  import string
  import sys
  from typing import Any, Dict, List, Optional, Set
  
  
  # SOLUTION CODE
  # ============================================
  PLACEHOLDER_CODE_BODY
  
  # TESTING CODE 
  # ============================================
  def validate_solution(actual, expected):
      return actual == expected
  
  def driver(n, expected):
      try:
          if validate_solution(PLACEHOLDER_FN_NAME(
              n),
              expected
          ):
              return "PASSED"
          return "FAILED"
      except Exception as exception_obj:
          return type(exception_obj).__name__
      
  if __name__ == "__main__":
      result = driver(62, True)
      print(f"TEST-0...{result}")
  
      result = driver(13, False)
      print(f"TEST-1...{result}")
  
      result = driver(29, False)
      print(f"TEST-2...{result}")
  
      result = driver(72, True)
      print(f"TEST-3...{result}")
  
      result = driver(30, True)
      print(f"TEST-4...{result}")
  
      result = driver(20, True)
      print(f"TEST-5...{result}")
  
      result = driver(10, True)
      print(f"TEST-6...{result}")
  
      result = driver(47, False)
      print(f"TEST-7...{result}")
  
      result = driver(91, True)
      print(f"TEST-8...{result}")
  
      result = driver(52, True)
      print(f"TEST-9...{result}")
  
      sys.exit(0)
question_info.test_case_ids: ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9']
question_info.entry_fn_name: composite_number
question_info.test_list: [{"idx": 0, "outputs": true, "inputs": {"n": 62}}, {"idx": 1, "outputs": false, "inputs": {"n": 13}}, {"idx": 2, "outputs": false, "inputs": {"n": 29}}, {"idx": 3, "outputs": true, "inputs": {"n": 72}}, {"idx": 4, "outputs": true, "inputs": {"n": 30}}, {"idx": 5, "outputs": true, "inputs": {"n": 20}}, {"idx": 6, "outputs": true, "inputs": {"n": 10}}, {"idx": 7, "outputs": false, "inputs": {"n": 47}}, {"idx": 8, "outputs": true, "inputs": {"n": 91}}, {"idx": 9, "outputs": true, "inputs": {"n": 52}}]
question_info.entry_cls_name: Solution