Skip to main content
added 19 characters in body
Source Link
emanresu A
  • 44.4k
  • 5
  • 101
  • 240

Vyxal r, 98 bytes

3ɾ›ƛ⁰/⌈n*⌈*

Try it Online!Try it Online!

-1 thanks to lyxal

 ɾ        # Range 1...
3         # Literal
  ›       # Incremented (2...4)
   ƛ      # Map to...
        * # Product of...
       n   # Current item
  (implicit)
       * # And...
      ⌈   # Floor of
          # (Implicit) current item
     /    # Divided by...
    ⁰     # Input

Vyxal r, 9 bytes

3ɾ›ƛ⁰/⌈n*

Try it Online!

 ɾ        # Range 1...
3         # Literal
  ›       # Incremented (2...4)
   ƛ      # Map to...
        * # Product of...
       n  # Current item
         * # And...
      ⌈   # Floor of
          # (Implicit) current item
     /    # Divided by...
    ⁰     # Input

Vyxal r, 8 bytes

3ɾ›ƛ⁰/⌈*

Try it Online!

-1 thanks to lyxal

 ɾ       # Range 1...
3        # Literal
  ›      # Incremented (2...4)
   ƛ     # Map to...
       * # Product of...
          # Current item (implicit)
       * # And...
      ⌈  # Floor of
         # (Implicit) current item
     /   # Divided by...
    ⁰    # Input
Source Link
emanresu A
  • 44.4k
  • 5
  • 101
  • 240

Vyxal r, 9 bytes

3ɾ›ƛ⁰/⌈n*

Try it Online!

 ɾ        # Range 1...
3         # Literal
  ›       # Incremented (2...4)
   ƛ      # Map to...
        * # Product of...
       n  # Current item
        * # And...
      ⌈   # Floor of
          # (Implicit) current item
     /    # Divided by...
    ⁰     # Input