A six-digit code is to be formed using 6 distinct numbers. The number in the first place is the square of a prime number in the third place. The numbers in the \(4^{\text{th}}\), \(6^{\text{th}}\), \(2^{\text{nd}}\) and \(1^{\text{st}}\) place are consecutive numbers. If all odd digits except 1 are present in the code, what is the sum of all the digits?