We first analyse the set of positive integers

for which

is four times a prime number for any positive odd integer

such that

and for which

is a prime number for any positive even integer

such that

. There are only three numbers with these properties:

. The second aim is to show that there are only five prime numbers

such that

is four times a prime number for any odd positive integer

; namely

. The third purpose is to show that there are only four positive integers

such that

is the double of a prime number for any nonnegative even integer

such that

; namely

. The tools for proving these results belong to algebraic number theory. The key is to point out some connections between these additive problems and the class numbers for some quadratic real fields.