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 listMay 16, 2026 21:55M-RochatM-RochatScore: 29,251Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2026 22:0329,05934,616,80124,449,0001,123,0002,113,536
2May 16, 2026 22:0329,12336,396,43124,488,0001,141,0002,113,536
3May 16, 2026 22:0329,13634,170,90324,528,0001,112,0002,113,536
4May 16, 2026 22:0329,16935,460,42924,559,0001,110,0002,113,536
5May 16, 2026 22:0329,25134,323,15724,707,0001,034,0002,113,536
6May 16, 2026 22:0329,28937,422,23324,746,0001,029,0002,113,536
7May 16, 2026 22:0329,37739,187,65424,821,0001,031,0002,113,536
8May 16, 2026 22:0329,83537,804,45725,155,0001,100,0002,113,536
9May 16, 2026 22:0330,15736,806,64425,390,0001,149,0002,113,536