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 29, 2026 08:53olliecrowolliecrowScore: 12,776Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 29, 2026 08:5412,53726,550,2229,027,0002,006,0002,428,928
2Apr 29, 2026 08:5412,64625,566,0219,106,0002,023,0002,437,120
3Apr 29, 2026 08:5412,70531,152,53210,165,0001,016,0002,433,024
4Apr 29, 2026 08:5412,70727,758,7099,150,0002,033,0002,433,024
5Apr 29, 2026 08:5412,77629,328,95010,221,0001,022,0002,445,312
6Apr 29, 2026 08:5412,78028,348,91310,225,0001,022,0002,441,216
7Apr 29, 2026 08:5412,78824,982,75610,231,0001,023,0002,437,120
8Apr 29, 2026 08:5412,85727,338,50610,184,0001,131,0002,437,120
9Apr 29, 2026 08:5412,87227,408,9709,269,0002,059,0002,441,216