Skip to main content
deleted 7 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases from Noodle9 and DloscDLosc, respectively.]

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases from Noodle9 and Dlosc, respectively.]

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Included the [3,4,6,10,16] and [1,1,1,2] falsey test cases from Noodle9 and DLosc, respectively.]

added 6 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!Try it online!

[Added[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases suggested byfrom Noodle9 and DLoscDlosc, respectively.]

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Added the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases suggested by Noodle9 and DLosc, respectively.]

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Included the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases from Noodle9 and Dlosc, respectively.]

added 6 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Added the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases suggested by Noodle9 and DLosc, respectively.]

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

Wolfram Mathematica 34 29 bytes

 2#~Drop~2==MovingMap[Tr,#,2]&

–5 bytes from @att

Try it online!

[Added the [3, 4, 6, 10, 16] and [1, 1, 1, 2] falsey test cases suggested by Noodle9 and DLosc, respectively.]

added 6 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12
Loading
deleted 413 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12
Loading
deleted 6 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12
Loading
added 4 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12
Loading
added 396 characters in body
Source Link
theorist
  • 1.5k
  • 6
  • 12
Loading
Source Link
theorist
  • 1.5k
  • 6
  • 12
Loading