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 05:59vahookvahookScore: 3,438Success
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 05:593,39016,259,824994,0001,989,0002,482,176
2Feb 6, 2026 05:593,39516,384,524996,0001,992,0002,490,368
3Feb 6, 2026 05:593,39518,017,456996,0001,992,0002,494,464
4Feb 6, 2026 05:593,42018,837,5751,003,0002,007,0002,494,464
5Feb 6, 2026 05:593,42718,851,0951,005,0002,011,0002,502,656
6Feb 6, 2026 05:593,43017,939,7951,006,0002,012,0002,277,376
7Feb 6, 2026 05:593,43820,662,2091,008,0002,017,0002,277,376
8Feb 6, 2026 05:593,44121,509,0561,009,0002,019,0002,490,368
9Feb 6, 2026 05:593,44121,112,8971,009,0002,019,0002,277,376
10Feb 6, 2026 05:593,45320,411,1221,013,0002,026,0002,502,656
11Feb 6, 2026 05:593,45819,104,6181,014,0002,029,0002,486,272
12Feb 6, 2026 05:593,47018,726,6181,018,0002,036,0002,502,656