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 28, 2026 23:07olliecrowolliecrowScore: 13,076Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 28, 2026 23:1012,99732,055,63610,295,0001,143,0002,400,256
2Apr 28, 2026 23:1013,05127,119,9759,397,0002,088,0002,404,352
3Apr 28, 2026 23:1013,06925,434,7419,410,0002,091,0002,469,888
4Apr 28, 2026 23:1013,07231,282,9149,413,0002,091,0002,392,064
5Apr 28, 2026 23:1013,07630,869,9489,415,0002,092,0002,416,640
6Apr 28, 2026 23:1013,15024,980,4209,468,0002,104,0002,396,160
7Apr 28, 2026 23:1013,15030,605,9209,468,0002,104,0002,400,256
8Apr 28, 2026 23:1013,18427,898,2789,493,0002,109,0002,416,640
9Apr 28, 2026 23:1013,31925,137,44011,721,00002,396,160