You are given an integer num.

A number num is called a Complete Prime Number if every prefix and every suffix of num is prime.

Return true if num is a Complete Prime Number, otherwise return false.

Note:

 

Example 1:

Input: num = 23

Output: true

Explanation:

Example 2:

Input: num = 39

Output: false

Explanation:

Example 3:

Input: num = 7

Output: true

Explanation:

 

Constraints: