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 10, 2026 14:07zielajzielajScore: 3,355Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 10, 2026 14:053,31516,908,2281,945,000972,0002,387,968
2Feb 10, 2026 14:073,31520,188,6431,945,000972,0002,392,064
3Feb 10, 2026 14:053,31821,258,5571,947,000973,0002,531,328
4Feb 10, 2026 14:073,31918,076,6462,921,00002,387,968
5Feb 10, 2026 14:053,32019,889,5611,948,000974,0002,392,064
6Feb 10, 2026 14:053,32216,001,9112,923,00002,392,064
7Feb 10, 2026 14:073,32218,921,5501,949,000974,0002,383,872
8Feb 10, 2026 14:053,32524,003,1971,951,000975,0002,383,872
9Feb 10, 2026 14:073,32724,142,4271,952,000976,0002,396,160
10Feb 10, 2026 14:073,35517,931,3441,968,000984,0002,277,376
11Feb 10, 2026 14:053,38623,419,1691,987,000993,0002,277,376
12Feb 10, 2026 14:073,40219,498,389998,0001,996,0002,277,376
13Feb 10, 2026 14:073,41622,322,4592,004,0001,002,0002,392,064
14Feb 10, 2026 14:053,42020,626,4812,007,0001,003,0002,387,968
15Feb 10, 2026 14:073,42620,730,0582,010,0001,005,0002,383,872
16Feb 10, 2026 14:053,43416,754,7552,015,0001,007,0002,531,328
17Feb 10, 2026 14:073,44320,727,9552,020,0001,010,0002,383,872
18Feb 10, 2026 14:053,44423,156,2972,021,0001,010,0002,387,968