Sum of prime numbers Andrey Tsvetkov

Compute the sum of all prime numbers in a stream of binary integers as fast as possible.

Input: 1 000 000 uint32 values in little-endian binary on STDIN (4 bytes each).

Output: The uint64 sum of all values that are prime, printed as a decimal string.

Back to listApr 17, 2026 18:05Charles CabergsCharles CabergsScore: 162,943Success
Source Code

Source code access is restricted. Log in to request access.

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 17, 2026 18:05162,152167,522,928140,685,0002,009,0002,478,080
2Apr 17, 2026 18:05162,498164,806,927142,998,00002,457,600
3Apr 17, 2026 18:05162,820164,485,322142,281,0001,001,0002,289,664
4Apr 17, 2026 18:05162,889166,230,787142,340,0001,002,0002,289,664
5Apr 17, 2026 18:05162,943171,437,478143,390,00002,461,696
6Apr 17, 2026 18:05163,006167,243,153143,445,00002,289,664
7Apr 17, 2026 18:05163,098169,068,639142,523,0001,003,0002,281,472
8Apr 17, 2026 18:05163,857173,742,939142,192,0002,002,0002,281,472
9Apr 17, 2026 18:05163,911164,654,362142,239,0002,003,0002,310,144