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 listFeb 5, 2026 02:14vahookvahookScore: 3,560Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 5, 2026 02:143,48223,906,1051,021,0002,043,0002,498,560
2Feb 5, 2026 02:143,51520,474,9921,031,0002,062,0002,502,656
3Feb 5, 2026 02:143,53219,598,9001,036,0002,072,0002,490,368
4Feb 5, 2026 02:143,56020,106,5881,044,0002,089,0002,535,424
5Feb 5, 2026 02:143,57022,926,7611,047,0002,095,0002,277,376
6Feb 5, 2026 02:143,57617,257,8141,049,0002,098,0002,490,368