Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ Challenge

Name: Anonymous 2011-09-26 14:42

Write a program which solves for and prints the first 30 titanic primes. The person who writes the most efficient program wins. Use any language you like.

Name: >>7 2011-09-26 16:12

Well, it's faster to just print a large string, it seems.

#include <stdio.h>
#define W "0000000000"
#define X W W W W W W W "0"
#define Y X X
#define Z "\n1" Y Y Y Y Y Y Y

int main(void) {puts(Z"00007"Z"00663"Z"02121"Z"02593"Z"03561"Z"04717"Z"05863"Z"09459"Z"11239"Z"14397"Z"17289"Z"18919"Z"19411"Z"21667"Z"25561"Z"26739"Z"27759"Z"28047"Z"28437"Z"28989"Z"35031"Z"41037"Z"41409"Z"41451"Z"43047"Z"43269"Z"43383"Z"50407"Z"51043"Z"52507"); return 0;}

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List