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 23, 2026 21:46Dominique GarmierDominique GarmierScore: 11,553Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 23, 2026 21:4611,45629,528,1049,073,0001,008,0002,506,752
2Mar 23, 2026 21:4611,46328,703,7928,070,0002,017,0002,445,312
3Mar 23, 2026 21:4611,46326,883,3618,070,0002,017,0002,437,120
4Mar 23, 2026 21:4611,51326,052,3828,105,0002,026,0002,506,752
5Mar 23, 2026 21:4611,55326,727,1319,151,0001,016,0002,351,104
6Mar 23, 2026 21:4611,55527,050,6548,135,0002,033,0002,347,008
7Mar 23, 2026 21:4611,57525,858,2849,168,0001,018,0002,437,120
8Mar 23, 2026 21:4611,63127,133,8969,212,0001,023,0002,351,104
9Mar 23, 2026 21:4611,73225,236,5639,292,0001,032,0002,482,176