avoiding writes to memory and reducing the number of loops (although not FLOPs)
for j in range(10):
c[j] = a[j] + b[j]
for j in range(10):
d[j] = c[j] * 2
becomes for j in range(10):
d[j] = (a[j] + b[j]) * 2