Skip to main content
edited body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 8282 74 bytes

-8 bytes thanks to @Digital Trauma

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=ffs(j=++i)-1;j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 82 74 bytes

-8 bytes thanks to @Digital Trauma

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=ffs(j=++i)-1;j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 82 74 bytes

-8 bytes thanks to @Digital Trauma

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=ffs(j=++i)-1;j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

added 108 characters in body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 8282 74 bytes

-8 bytes thanks to @Digital Trauma

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=__builtin_ctzk=ffs(j=++i);j%3<1;j-1;j%3<1;j/=3)k--;}

Try it online!Try it online!

Port of @math scat's answer

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 82 bytes

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=__builtin_ctz(j=++i);j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 82 74 bytes

-8 bytes thanks to @Digital Trauma

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=ffs(j=++i)-1;j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

added 374 characters in body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 82 bytes

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=__builtin_ctz(j=++i);j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

C (gcc), 82 bytes

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=__builtin_ctz(j=++i);j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

C (GCC), 63 bytes

i;main(j){for(;;~j%7%3||printf("%d ",i))for(j=++i;j%7<1;)j/=7;}

Attempt This Online!

Port of @m90's answer

C (gcc), 82 bytes

i;main(j,k){for(;;k%3||printf("%d ",i))for(k=__builtin_ctz(j=++i);j%3<1;j/=3)k--;}

Try it online!

Port of @math scat's answer

deleted 86 characters in body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58
Loading
deleted 85 characters in body
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58
Loading
Source Link
Mukundan314
  • 12.7k
  • 1
  • 16
  • 58
Loading