n=int(input()) a=list(map(int,input().split())) f=0 for i in range(n-1,-1,-1): x=i+1 y=a[i]+f if y:f+=1 if y%x:exit(print("No")) print("Yes")