We compute the second moment in the family of quadratic Dirichlet Lfunctions with prime conductors over F q [x] when the degree of the discriminant goes to infinity, obtaining one of the lower order terms. We also obtain an asymptotic formula with the leading order term for the mean value of the derivatives of L-functions associated to quadratic twists of a fixed elliptic curve over F q (t) by monic irreducible polynomials, which allows us to show that there exists a monic irreducible polynomial such that the analytic rank of the corresponding twisted elliptic curve is equal to 1.