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 25, 2026 18:57olliecrowolliecrowScore: 13,067Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 25, 2026 18:5712,92128,537,67410,338,0001,033,0002,400,256
2Apr 25, 2026 18:5712,92229,778,45610,339,0001,033,0002,306,048
3Apr 25, 2026 18:5712,94030,753,70810,353,0001,035,0002,314,240
4Apr 25, 2026 18:5712,96724,963,43010,374,0001,037,0002,301,952
5Apr 25, 2026 18:5713,06729,231,86910,454,0001,045,0002,342,912
6Apr 25, 2026 18:5713,09330,887,64110,475,0001,047,0002,310,144
7Apr 25, 2026 18:5713,13428,706,48210,508,0001,050,0002,338,816
8Apr 25, 2026 18:5713,14324,531,38310,515,0001,051,0002,572,288
9Apr 25, 2026 18:5713,28228,997,39310,627,0001,062,0002,420,736