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