A note on an average additive problem with prime numbers