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 listAug 1, 2026 03:14Warren FuWarren FuScore: 142,423Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2026 03:16141,902135,490,595123,864,0001,010,0002,113,536
2Aug 1, 2026 03:16141,956139,372,647123,910,0001,012,0002,113,536
3Aug 1, 2026 03:16142,023135,687,442123,972,0001,009,0002,113,536
4Aug 1, 2026 03:16142,362135,297,815124,271,0001,008,0002,113,536
5Aug 1, 2026 03:16142,423135,284,368124,324,0001,009,0002,113,536
6Aug 1, 2026 03:16142,486135,302,295124,377,0001,011,0002,113,536
7Aug 1, 2026 03:16142,684135,877,858124,552,0001,010,0002,113,536
8Aug 1, 2026 03:16142,720136,136,734124,585,0001,009,0002,113,536
9Aug 1, 2026 03:16143,235139,698,809125,042,0001,005,0002,113,536