Skip to main content
deleted 8 characters in body
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

Dyalog APL, 2017 bytes

{0∊1|.5*⍨4 ¯4+⍵×⍵×5}¯4+5××⍨ 

Try it online!Try it online!

Dyalog APL, 20 bytes

{0∊1|.5*⍨4 ¯4+⍵×⍵×5} 

Try it online!

Dyalog APL, 17 bytes

0∊1|.5*⍨4 ¯4+5××⍨ 

Try it online!

edited body
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

Dyalog APL, 3520 bytes

{0∊1|.5*⍨4 ¯4+⍵×⍵×5} 

Try it online!

Dyalog APL, 35 bytes

{0∊1|.5*⍨4 ¯4+⍵×⍵×5} 

Try it online!

Dyalog APL, 20 bytes

{0∊1|.5*⍨4 ¯4+⍵×⍵×5} 

Try it online!

deleted 110 characters in body
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45

Dyalog APL, 35 bytes

{⍵∊{1∧+∘÷/0,⍵/1}¨⍳1+⍵0∊1|.5*⍨4 ¯4+⍵×⍵×5} 

Try it online!

Generates the first n + 1 numbers (edge cases 2 and 3) and check if n in included.Try it online!

Dyalog APL, 35 bytes

{⍵∊{1∧+∘÷/0,⍵/1}¨⍳1+⍵} 

Try it online!

Generates the first n + 1 numbers (edge cases 2 and 3) and check if n in included.

Dyalog APL, 35 bytes

{0∊1|.5*⍨4 ¯4+⍵×⍵×5} 

Try it online!

added 35 characters in body
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45
Loading
Source Link
Uriel
  • 13.3k
  • 4
  • 18
  • 45
Loading