Given three numbers sum s, prime p and n, find all n prime numbers after prime p such that their sum is equal to s. for example if: input : n = 2, p = 7, s = 28 output : 11 17 explanation : 11 and 17 are primes after prime 7 and (11 + 17 = 28)
Answers
Answered by
0
Step-by-step explanation:
Given three numbers sum s, prime p and n, find all n prime numbers after prime p such that their sum is equal to s. for example if: input : n = 2, p = 7, s = 28 output : 11 17 explanation : 11 and 17 are primes after prime 7 and (11 + 17 = 28)
Similar questions
Social Sciences,
7 months ago
Math,
7 months ago
Physics,
7 months ago
Science,
1 year ago
Physics,
1 year ago