← Oracle questions

Find two prime numbers with given sum

Filed under Oracle

Given an even integer n (n > 2), find and print two prime numbers such that their sum equals n. Use the Sieve of Eratosthenes to optimize the prime number identification.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Oracle questions

Collected from public candidate posts and coding forums. Updated Nov 2026.