Help with a game puzzle (slight logic and math)

Need help with a puzzle in a game. Normally I could do these ones, but it’s too early in the morning to think too hard…so here it is.

Anyway…there is a code, it’s four digits.
The first number is HALF of the second number, the second number is ONE more than the third number, the third number is TWO less than the fourth number, the fourth number is FOUR more than the first…
…and lastly, the second number is the only number NOT a prime number.
What the eff is the code? I can’t smrt right now.
EDIT: Nevermind, someone on Facebook finally figured it out. After five people gave 7 wrong answers (in total, all among them), one person got it right. I’ll leave this open and unedited in case any of you want to try to figure it out and answer for yourself, though.

The answer, if you’re curious, is

3657

If the fourth number is four more than the first and both are primes (and all are single digits, obviously), that pretty much nails it down what those two are right there. The rest follow easily.

I got it from the first two:

If the second number is twice the first, and the first is a prime, the only possible first numbers are 2 or 3. If it’s 2, then the fourth number is 6, which isn’t prime, so that’s out. So it must be 3, and the rest follows.

I just set it up with an equation and got:

3657

With a being first digit, b being second, c being third, d being fourth:

a = .5 b
b = c+1
c = d-2
d= a +1

a=.5b
a=.5(c+1)
a=.5(d-2+1)
a=.5(a+4-2+1)
a=.5(a+3)
a=.5a+1.5
.5a=1.5
a=3

Substitute back:

3=.5b
b = 6

b=c+1
6=c+1
c=5

d=a+4
d=3+4
d=7

Without reading the thread:

You want three numbers (first, third, fourth), ascending with a step of 2 between each, and all must be prime. The only prime triplet with diameter 4 is (3,5,7). From the first two clues it follows easily that the second number is 6.

Crap, missed edit window. Above it should be:

d=a+4

Am I the only one annoyed that the puzzle is overdetermined?

Oh, I completely missed the part that said “the second number is the only number that is not a prime number.” That could speed things up exponentially–no need for algebra. The possibilities for the first number was originally just 1,2,3,4 for me, based on the second statement, but if it can only be prime, it’s just 2 and 3. Then you can just use trial and error to figure it out quite fast. If the first number is 2, then the second number must be 4, and the fourth number must be 6. But six is not prime, . So that’s out, leaving us with just “3” as the only possible answer. And, sure enough, it works. If 3 is the first number then 6 must be the second. And the fourth number must be 7 (first number plus four). So far so good. Third number is 2 less than the fourth, making it 5. Check with the other statement that second number is one more than the third number, and they agree.

No offense to the OP but it must be really early in the morning.

Knowing the second digit was twice the first and that they were a prime/non-prime pair left only two possibilities: 24 and 36. I tried them both and found 3657 was the correct one.

Very much so. Still, I did bother to solve it without reference to the prime number thing. As has been pointed out, the prime number information reduces it to simplicity, and allows for solution by trial and error in very short sequence.

Well, it is a PC game rated T for teen, so I doubt it’s going to be extremely hard.
The game is called Last Dream, by the way, if anyone cares… an extremely good, old school RPG. One of the best I’ve played (I just finished it yesterday).

I’m math disabled. I have to numbers and math what people with dyslexia have to reading/words. There’s a name/term for it (it’s an actual thing), but I forget what it is at the moment. I didn’t even get out of long division and fractions when I was in high school. I am extremely bad at math. Extremely.

Discalculia.

Ah, yes! That’s it. Had trouble remembering the name, but I recognized it once it was written.

Being very poor at math and numbers is my payment for being extremely good with words, language, and English.