import sequtils,strutils var L, R, ans : int (L, R) = stdin.readline.split.map(parseInt) type unionfindtree[I : static[int]] = array[I,int] proc initUT(I : static[int]):unionfindtree[I] = var res : unionfindtree[I] for i in 0.. R: break A.union(i, i * j) for i in L..R: if A[i] == i: ans += 1 echo ans - 1