PHP Compiler Testing
Amplify the Multiples of Four

Create a function that takes an integer and returns a list from 1 to the given number, where:

  1. If the number can be divided evenly by 4, amplify it by 10 (i.e. return 10 times the number).
  2. If the number cannot be divided evenly by 4, simply return the number.

Examples

amplify(4)  [1, 2, 3, 40]
 
amplify(3)  [1, 2, 3]
 
amplify(25)  [1, 2, 3, 40, 5, 6, 7, 80, 9, 10, 11, 120, 13, 14, 15, 160, 17, 1