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: sage 2011-09-26 23:31

>>13
Not fast enough. All registers start up zeroed, and an inc is faster than a mov immediate.


mov eax, 4
inc ebx
mov ecx, s
mov edx, len
int 0x80

mov eax, 1
dec ebx
int 0x80


Faster by tenths of nanoseconds.

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