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 listMar 15, 2026 15:12Dominique GarmierDominique GarmierScore: 5,869,005Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2026 15:125,860,2985,412,781,5944,974,131,000182,931,000450,560
2Mar 15, 2026 15:125,869,0055,300,684,6084,973,328,000191,396,000184,320
3Mar 15, 2026 15:125,879,8165,433,184,1494,995,022,000179,216,000172,032