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 16, 2026 23:19zielajzielajScore: 3,373Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 16, 2026 23:223,31420,102,5191,944,000972,0002,437,120
2Feb 16, 2026 23:203,31716,690,5601,946,000973,0002,510,848
3Feb 16, 2026 23:203,31820,276,1431,947,000973,0002,428,928
4Feb 16, 2026 23:213,32216,794,6691,949,000974,0002,510,848
5Feb 16, 2026 23:193,32421,953,5272,925,00002,510,848
6Feb 16, 2026 23:193,37219,119,8421,978,000989,0002,437,120
7Feb 16, 2026 23:203,37315,734,7971,979,000989,0002,437,120
8Feb 16, 2026 23:213,37320,856,5732,968,00002,441,216
9Feb 16, 2026 23:223,40720,345,6951,999,000999,0002,433,024
10Feb 16, 2026 23:193,42422,660,1612,009,0001,004,0002,273,280
11Feb 16, 2026 23:213,44820,196,2642,023,0001,011,0002,531,328
12Feb 16, 2026 23:193,45720,430,2681,014,0002,028,0002,441,216
13Feb 16, 2026 23:193,45818,754,6151,014,0002,029,0002,437,120
14Feb 16, 2026 23:223,77722,711,9823,324,00002,437,120
15Feb 16, 2026 23:193,84722,514,8042,257,0001,128,0002,437,120