two prime numbers

This Question Was Asked By Alibaba

Given an even number greater than 2 . You have to return two prime numbers whose sum will be equal to the given number. If there is more than one solution possible, return the lexicographically smaller solution.

Write a function solve that have the following parameter(s):
1.) n = an integer

Example
Input:
4
Output:
[2, 2]

Explanation
n = 4;
• Given n = 4, the two prime numbers whose sum will be equal to the given number are: [2, 2].

Example
Input:
6
Output:
[3, 3]

Explanation n = 6;
• Given n = 6, the two prime numbers whose sum will be equal to the given number are: [3, 3].

Constraints
• The value of an integer should be greater than 0 and less than 10000.