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 listAug 15, 2026 18:51Tomislav TunkovicTomislav TunkovicScore: 2,770Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 15, 2026 18:532,75010,589,2112,420,000020,480
2Aug 15, 2026 18:532,75510,563,8492,425,000020,480
3Aug 15, 2026 18:532,75710,570,2542,427,000020,480
4Aug 15, 2026 18:532,76210,540,6492,431,000020,480
5Aug 15, 2026 18:532,77010,572,5542,438,000020,480
6Aug 15, 2026 18:532,77510,666,0902,442,000020,480
7Aug 15, 2026 18:532,77710,488,7842,444,000020,480
8Aug 15, 2026 18:532,81910,658,2292,481,000020,480
9Aug 15, 2026 18:532,82710,612,2152,488,000020,480