Saturday, April 22, 2017

mathematics - Crack the Code #2



After the last bank encounter, you decide that you could make a living off of just cracking codes (as if robbing banks wasn't enough). A shady man meets you on a park bench and slides you an envelope, dramatically. It contains clues for the next number.


Crack the Code #1


Digits are referred to as A-B-C-D in the clues. "A + B" is the sum of the first and second digit. All math follows the standard order of operations


Clues



  • The digits are in descending order.

  • The number is prime.

  • The first digit is less than 6.


What four digit number matches these criteria? Also, if you want, post your methodology for finding the correct answer, as this will help me in the future.



Note: I am pretty sure that only one number matches all these clues. However, I may have miscalculated. Please correct me in the comments.


Another note: YenTheFirst, you could probably solve this pretty easily, seeing as the other one was pretty fast. This is great, but can you put the answer in a spoiler this time if you solve it?



Answer



Assuming you mean strictly descending order, there's only one such number:



$$5431$$



The only other numbers satisfying clue 1 and 3 simultaneously are:


$$3210,4210,4310,4320,4321,5210,5310,5320,5321,5410,5420,5421,5430,5432$$


Clearly, numbers ending in $0$ or $2$ cannot be prime. This leaves:



$$4321=29\cdot149,5321=17\cdot313,5421=3\cdot1807$$


No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...