As the counterpart of classical theorems on cycles of consecutive lengths due to Bondy and Bollobás in spectral graph theory, Nikiforov proposed the following open problem in 2008: What is the maximum C such that for all positive εqrt⌊4n2⌋ contains a cycle of length ℓ for each integer ℓ∈[3,(C−ε)n]. We prove that C≥41 by a novel method, improving the existing bounds. Besides several novel ideas, our proof technique is partly inspirited by the recent research on Ramsey numbers of star versus large even cycles due to Allen, Åuczak, Polcyn and Zhang, and with aid of a powerful spectral inequality. We also derive an ErdÅs-Gallai-type edge number condition for even cycles, which may be of independent interest.