code: def compositepi(n):
      """Return the number of positive composite numbers less than or equal to n.
      The first positive composite is 4, i.e. compositepi(4) = 1.
  
      Examples
      ========
  
      >>> from sympy import compositepi
      >>> compositepi(25)
      15
      >>> compositepi(1000)
      831
  
      See Also
      ========
  
      sympy.ntheory.primetest.isprime : Test if n is prime
      primerange : Generate all primes in a given range
      prime : Return the nth prime
      primepi : Return the number of primes less than or equal to n
      composite : Return the nth composite number
      """
      n = int(n)
      if n < 4:
          return 0
      return n - primepi(n) - 1
  
imports: from bisect import bisect, bisect_left
  from itertools import count
  from array import array
  from sympy.core.function import Function
  from sympy.core.random import randint
  from sympy.core.singleton import S
  from sympy.external.gmpy import sqrt
  from .primetest import isprime
  from sympy.utilities.misc import as_int
label_desc: Use image node_id 10 for calling a global function with example usage: compositepi(n) and returns: unknown, int