By the extremal numberex(v;{C₃,C₄,…,Cn}) we denote the maximum number of edges in a graph of order v and girth at least g≥n+1. The set of such graphs is denoted by . In 1975, Erdős mentioned the problem of determining extremal numbers ex(v;{C₃,C₄}) in a graph of order v and girth at least five. In this paper, we consider a generalized version of the problem for any value of girth by using the hybrid simulated annealing and genetic algorithm (HSAGA). Using this algorithm, some new results for n≥5 have been obtained. In particular, we generate some graphs of girth 6,7 and 8 which in some cases have more edges than corresponding cages. Furthermore, future work will be described regarding the investigation of structural properties of such extre...