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 14, 2026 15:28Dominique GarmierDominique GarmierScore: 64,184Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 14, 2026 15:2864,08477,538,54954,380,0002,014,0002,359,296
2Mar 14, 2026 15:2864,18491,112,91654,465,0002,017,0002,465,792
3Mar 14, 2026 15:2864,32777,562,11455,598,0001,010,0002,351,104