Filters consist of a few resolvents to solve real symmetric definite generalized eigenproblems