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 6, 2026 21:02vahookvahookScore: 3,450Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 6, 2026 21:023,37619,912,140990,0001,981,0002,502,656
2Feb 6, 2026 21:023,39921,803,788997,0001,994,0002,277,376
3Feb 6, 2026 21:023,41720,194,9411,002,0002,005,0002,498,560
4Feb 6, 2026 21:023,42724,515,2261,005,0002,011,0002,502,656
5Feb 6, 2026 21:023,45024,632,7271,012,0002,024,0002,498,560
6Feb 6, 2026 21:023,45319,402,5801,013,0002,026,0002,498,560
7Feb 6, 2026 21:023,45317,956,0701,013,0002,026,0002,490,368
8Feb 6, 2026 21:023,46121,760,8981,015,0002,031,0002,281,472
9Feb 6, 2026 21:023,48519,994,1631,022,0002,045,0002,490,368