5 added 8 characters in body

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&_+((}gS*


Both take input from STDIN and print space/newline separated numbers to STDOUT

Try them online here

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&_+((}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&_+((}gS*


Both take input from STDIN and print space/newline separated numbers to STDOUT

Try them online here

4 edited body

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&__;;&_+((}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&__;;}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&_+((}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

Post Undeleted by Optimizer
3 deleted 16 characters in body

# CJam, Both 23, Distance 16, Score 3924 + 17 = 41 42

Collatz program:

riri2*{_2%1$3*:N2%N3*)2$2N2/?___p(}g]S*g;


Twin primes program:

ri_2+]{1f+__:)_{mp},=!/&__;;}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

# CJam, Both 23, Distance 16, Score 39

Collatz program:

ri{_2%1$3*)2$2/?_(}g]S*


Twin primes program:

ri_2+]{1f+__{mp},=!}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

# CJam, 24 + 17 = 41 42

Collatz program:

ri2*{:N2%N3*)N2/?__p(}g;


Twin primes program:

ri_2+]{:)_{mp}/&__;;}gS*


Both take input from STDIN and print space separated numbers to STDOUT

Try them online here

Post Deleted by Optimizer
2 edited body
1