Skip to main content
looks a bit better
Source Link
frank
  • 991
  • 5
  • 10

Pyth, 16 bytes

V101p? %N/T5N]\ET5NK\E 

Try it online!Try it online!

Verify it online!Verify it online!

Separated by ""

How it works:

V101p? %N/T5N]\ET5NK\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\EK\E - Otherwise, return the'E' one-element(K listhere 'E'is just a separator) p - Print the result 

Pyth, 16 bytes

V101p? %N/T5N]\E 

Try it online!

Verify it online!

How it works:

V101p? %N/T5N]\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\E - Otherwise, return the one-element list 'E' p - Print the result 

Pyth, 16 bytes

V101p? %N/T5NK\E 

Try it online!

Verify it online!

Separated by ""

How it works:

V101p? %N/T5NK\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N K\E - Otherwise, return 'E' (K here is just a separator) p - Print the result 
deleted 3 characters in body
Source Link
frank
  • 991
  • 5
  • 10

Pyth, 16 bytes

V101p? %N/T5N]\E 

Try it online!

Verify it online!Verify it online!

How it works:

V101p? %N/T5N]\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\E - Otherwise, return the one-element list 'E' p - Print the result 

Pyth, 16 bytes

V101p? %N/T5N]\E 

Try it online!

Verify it online!

How it works:

V101p? %N/T5N]\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\E - Otherwise, return the one-element list 'E' p - Print the result 

Pyth, 16 bytes

V101p? %N/T5N]\E 

Try it online!

Verify it online!

How it works:

V101p? %N/T5N]\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\E - Otherwise, return the one-element list 'E' p - Print the result 
added 438 characters in body
Source Link
frank
  • 991
  • 5
  • 10

Pyth, 2216 bytes

VUV101p? 101p%N/T5N]\E 

Try it online!

Verify it online!

How it works:

V101p? %Ns%N/T5N]\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\E - Otherwise,1 1N+return k\Ethe one-element list 'E'  p - Print the result 

Try it online!

Pyth, 22 bytes

VU 101p? %Ns,1 1N+ k\E 

Try it online!

Pyth, 16 bytes

V101p? %N/T5N]\E 

Try it online!

Verify it online!

How it works:

V101p? %N/T5N]\E V101 - For 'N' in 0..100 ? %N/T5 - If N modulo (10÷5) (or N%2) is truthy... N - ...return N ]\E - Otherwise, return the one-element list 'E'  p - Print the result 
Source Link
frank
  • 991
  • 5
  • 10
Loading