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: 2 2011-09-26 21:28

This is the fastest, yours are slower because they're line buffered coupled with some bloated C library, mine is fully buffered. I had to replace the next titanic primes with nothing for posting purposes.

section    .data
s:    db    "1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007, ...", 0xa
len    equ    $ - s

section    .text
    mov    eax, 4
    mov    ebx, 1
    mov    ecx, s
    mov    edx, len
    int    0x80

    mov    eax, 1
    mov    ebx, 0
    int    0x80


The full program (with all the 30 first titanic primes) exited successfully.

[~/x86] time ./fastest > /dev/null

real    0m0.004s
user    0m0.000s
sys    0m0.004s

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