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 23, 2026 20:49olliecrowolliecrowScore: 12,764Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 23, 2026 20:5012,62727,795,5839,092,0002,020,0002,400,256
2Apr 23, 2026 20:5012,75324,078,01710,203,0001,020,0002,560,000
3Apr 23, 2026 20:5012,75728,022,46610,207,0001,020,0002,310,144
4Apr 23, 2026 20:5012,75926,342,46810,208,0001,020,0002,572,288
5Apr 23, 2026 20:5012,76432,733,51810,212,0001,021,0002,387,968
6Apr 23, 2026 20:5012,77927,809,03610,224,0001,022,0002,314,240
7Apr 23, 2026 20:5012,82530,901,11410,260,0001,026,0002,342,912
8Apr 23, 2026 20:5012,83532,558,1979,242,0002,053,0002,400,256
9Apr 23, 2026 20:5012,99328,345,66010,395,0001,039,0002,301,952