Let x1,x2,,x2023x_1, x_2, \ldots, x_{2023} be pairwise different positive real numbers such that

an=(x1+x2++xn)(1x1+1x2++1xn)a_n = \sqrt{(x_1 + x_2 + \cdots + x_n)\left(\frac{1}{x_1} + \frac{1}{x_2} + \cdots + \frac{1}{x_n}\right)}

is an integer for every n=1,2,,2023n = 1, 2, \ldots, 2023. Prove that a20233034a_{2023} \geqslant 3034.