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 26, 2026 17:55TudyMTudyMScore: 116,171Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Apr 26, 2026 17:56115,742123,363,878100,855,000998,0002,359,296
2Apr 26, 2026 17:56115,936122,485,21499,024,0003,000,0002,371,584
3Apr 26, 2026 17:56116,022120,187,494101,100,0001,000,0002,326,528
4Apr 26, 2026 17:56116,106117,881,242100,171,0002,003,0002,367,488
5Apr 26, 2026 17:56116,171123,454,068100,227,0002,004,0002,367,488
6Apr 26, 2026 17:56116,250118,360,899101,298,0001,002,0002,367,488
7Apr 26, 2026 17:56116,276119,707,797101,320,0001,003,0002,367,488
8Apr 26, 2026 17:56116,426122,654,541101,451,0001,004,0002,371,584
9Apr 26, 2026 17:56116,453121,778,024101,475,0001,004,0002,326,528