In this paper, we explore some cosmological solutions of the Friedmann-Lemaitre-Robertson-Walker (FLRW) closed universe with nonlocal de Sitter gravity dS and nonlocal scalar field which has its origin in p-adic string theory. In this case, we have that both geometrical and matter sectors of equations of motion (EoM) are nonlocal. The cosmological constant Lambda plays a role of dark energy (DE) and is related to the mass of scalar field as m = (h)/(c) root (Lambda)/(6) = 1.5 x 10(-69)kg. We found that the cosmological constant Lambda depends on prime number p as a discrete parameter and we conjectured that Lambda is not constant during the universe evolution.