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 listMay 3, 2026 21:06TudyMTudyMScore: 30,061Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 3, 2026 21:0929,84839,437,44325,195,0001,072,0002,322,432
2May 3, 2026 21:0929,97144,529,50925,301,0001,074,0002,318,336
3May 3, 2026 21:0930,00441,241,38525,332,0001,072,0002,322,432
4May 3, 2026 21:0930,01143,508,83525,334,0001,076,0002,322,432
5May 3, 2026 21:0930,06140,515,85925,400,0001,054,0002,314,240
6May 3, 2026 21:0930,07642,803,54825,393,0001,074,0002,322,432
7May 3, 2026 21:0930,08642,260,73225,418,0001,058,0002,322,432
8May 3, 2026 21:0930,13245,368,47225,435,0001,082,0002,318,336
9May 3, 2026 21:0930,14742,616,27525,448,0001,082,0002,322,432