#!/usr/local/pypy-5.10.0/bin/pypy import math import time import random 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() print(t2-t1) main()