An ancient vault requires a four-digit numerical code. - The sum of all four digits is 10. - The first digit is twice the third digit. - The second digit is zero. - The last digit is odd and greater than 5. What is the four-digit code?
4024
Let the code be ABCD. We know B = 0. D is odd and > 5, so D must be 7 or 9. If D = 9, sum is A + 0 + C + 9 = 10, so A + C = 1. Since A = 2C, 3C = 1 (not an integer). Therefore, D must be 7? Wait, sum is A + 0 + C + D = 10. If D = 7, A + C = 3. Since A = 2C, 3C = 3, so C = 1 and A = 2. Let's check: A=2, B=0, C=1, D=7 -> 2017. Sum = 2+0+1+7 = 10. A (2) is twice C (1). B = 0. D (7) is odd and > 5. Code is 2017.
About this riddle
Logic riddles give you a few facts and ask what must be true. List what you know, cross out what cannot be, and see what is left.
Difficulty: Hard. More like this: Logic riddles with answers or try Einstein's Logic Grid for a different kind of puzzle.
More logic riddles
A line goes: turkey, pie, turkey, pie, turkey. What comes next?
What English word remains completely identical in spelling and pronunciation whether you read it forwards, backwards, or upside down?
Tom is older than Jerry, but younger than Spike. Tyke is older than Spike. Who is the youngest among the four?
A merchant has four weights of 1 lb, 3 lb, 9 lb, and 27 lb. Using a traditional two-pan balance scale, what is the single heaviest whole-pound object she can weigh by placing weights on either one or both sides of the scale?
Three boxes are labeled: Box A ('Apples'), Box B ('Bananas'), Box C ('Apples and Bananas'). You are told that all three labels are completely incorrect. By reaching into just one box and pulling out a single piece of fruit, which box must you open to figure out the correct contents of all three boxes?
Five runners—A, B, C, D, and E—finished a race. A finished before B but after C. D finished right after B. E finished before C. In what position did D finish?

