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 listJan 18, 2026 01:21Josu San MartinJosu San MartinScore: 20,357Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 18, 2026 01:1920,32839,824,42415,902,0001,987,0002,457,600
2Jan 18, 2026 01:1920,34747,516,56715,916,0001,989,0002,367,488
3Jan 18, 2026 01:2120,34844,001,79915,917,0001,989,0002,514,944
4Jan 18, 2026 01:2120,35545,152,41517,912,00002,457,600
5Jan 18, 2026 01:2120,35740,978,26116,919,000995,0002,449,408
6Jan 18, 2026 01:1920,42438,568,44115,976,0001,997,0002,441,216
7Jan 18, 2026 01:2120,43437,977,70015,984,0001,998,0002,535,424
8Jan 18, 2026 01:2120,45641,122,77716,001,0002,000,0002,355,200
9Jan 18, 2026 01:2120,83238,513,06017,314,0001,018,0002,457,600