code: def list_primes(n):
      n = n + 1
      sieve = list(xrange(n))
      sieve[:2] = [0, 0]
      for i in xrange(2, int(n**0.5) + 1):
          if sieve[i]:
              for j in xrange(i**2, n, i):
                  sieve[j] = 0
      return [p for p in sieve if p]
  
imports: import math
  from bisect import bisect
  from .backend import xrange
  from .backend import BACKEND, gmpy, sage, sage_utils, MPZ, MPZ_ONE, MPZ_ZERO
label_desc: Use image node_id 20 for calling a global function with example usage: list_primes(n) and returns: unknown