Do any of these apply to you?
Five years is enough if you were born in Hungary or settled there before 18. Three is enough for spouses of citizens married 3 years, widows and widowers of citizens, parents of a Hungarian child under 18, adults adopted by a citizen, refugees and stateless people.