#!/usr/bin/python import sys import math import time import numba import random @numba.jit def main(): a=[None] * 5000000 random.seed(time.time()) t1=time.time() for i in xrange(0, 5000000): b=random.random() if b>0.5: c=math.pow(b,1.546) else: c=math.pow(b,0.434232) d=math.cos(c+i) a[i]=math.atan(d) t2=time.time() sys.stdout.write('{}\n'.format(t2 - t1)) main()