The full Nernst equation is E = E0 + (RT/nF)lnQ The R should be 8.314 J/mole K and T is taken as 298.15K and the Faraday constant is 96,485 Coulombs/mole of electrons. That leads to
the term (.02569/ne) lnQ is obtained. So your first equation is correct for 25°C
the second equation is also correct with log meaning log base 10 (again, limited to 25°C)
ln(x) = log(x)/log(e) which obtains the .05915 coefficient.