Skip to main content
Commonmark migration
Source Link

#APL+WIN, 16 bytes

APL+WIN, 16 bytes

Prompts for vector of integers

+/2 4[(3 5⍳⎕)~3] 

Try it online! Courtesy of Dyalog Classic

#APL+WIN, 16 bytes

Prompts for vector of integers

+/2 4[(3 5⍳⎕)~3] 

Try it online! Courtesy of Dyalog Classic

APL+WIN, 16 bytes

Prompts for vector of integers

+/2 4[(3 5⍳⎕)~3] 

Try it online! Courtesy of Dyalog Classic

deleted 6 characters in body
Source Link
Graham
  • 7.8k
  • 1
  • 15
  • 13

#APL+WIN, 2116 bytes

Prompts for vector of integers

+/2 4[(3 5⍳n5⍳⎕)~1+⍴n←⎕]~3] 

Try it online! Courtesy of Dyalog ClassicTry it online! Courtesy of Dyalog Classic

#APL+WIN, 21 bytes

Prompts for vector of integers

+/2 4[(3 5⍳n)~1+⍴n←⎕] 

Try it online! Courtesy of Dyalog Classic

#APL+WIN, 16 bytes

Prompts for vector of integers

+/2 4[(3 5⍳⎕)~3] 

Try it online! Courtesy of Dyalog Classic

Source Link
Graham
  • 7.8k
  • 1
  • 15
  • 13

#APL+WIN, 21 bytes

Prompts for vector of integers

+/2 4[(3 5⍳n)~1+⍴n←⎕] 

Try it online! Courtesy of Dyalog Classic