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 15, 2026 04:14limanjun99limanjun99Score: 17,256Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 15, 2026 04:1416,59033,139,89412,514,0002,085,0002,355,200
2Apr 15, 2026 04:1416,67831,895,37411,532,0003,145,0002,347,008
3Apr 15, 2026 04:1416,69930,302,90714,695,00002,469,888
4Apr 15, 2026 04:1417,23038,164,41612,130,0003,032,0002,441,216
5Apr 15, 2026 04:1417,25645,298,02913,161,0002,024,0002,465,792
6Apr 15, 2026 04:1417,28532,334,61113,183,0002,028,0002,437,120
7Apr 15, 2026 04:1417,28834,772,66513,185,0002,028,0002,461,696
8Apr 15, 2026 04:1417,32741,293,84513,215,0002,033,0002,342,912
9Apr 15, 2026 04:1417,34233,693,11913,227,0002,034,0002,453,504