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 listApr 20, 2026 12:48Victor MerckléVictor MerckléScore: 6,812,347Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 20, 2026 12:506,777,9125,993,499,9325,962,564,0001,999,0002,502,656
2Apr 20, 2026 12:506,798,7636,004,434,5535,978,914,0003,998,0002,289,664
3Apr 20, 2026 12:506,807,9976,023,350,9505,990,039,000999,0002,260,992
4Apr 20, 2026 12:506,812,1186,032,433,4165,992,665,0001,999,0002,490,368
5Apr 20, 2026 12:506,812,3476,021,233,2895,992,868,0001,998,0002,494,464
6Apr 20, 2026 12:506,820,1066,029,974,5185,999,696,0001,998,0002,260,992
7Apr 20, 2026 12:506,833,6266,037,553,4856,010,593,0002,998,0002,260,992
8Apr 20, 2026 12:506,844,9766,048,667,1036,021,581,0001,998,0002,260,992
9Apr 20, 2026 12:506,859,8206,067,570,7456,035,643,000999,0002,260,992