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 17, 2026 14:02zielajzielajScore: 3,399Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 17, 2026 14:003,31722,129,7101,946,000973,0002,437,120
2Feb 17, 2026 14:013,32222,079,8311,949,000974,0002,449,408
3Feb 17, 2026 14:013,32820,000,8662,929,00002,437,120
4Feb 17, 2026 14:013,32824,772,9081,953,000976,0002,277,376
5Feb 17, 2026 14:023,33418,578,2231,956,000978,0002,437,120
6Feb 17, 2026 13:593,33920,261,4561,959,000979,0002,433,024
7Feb 17, 2026 14:013,33918,718,887979,0001,959,0002,433,024
8Feb 17, 2026 14:003,39920,676,3891,994,000997,0002,281,472
9Feb 17, 2026 14:003,45016,249,1732,024,0001,012,0002,437,120
10Feb 17, 2026 13:593,45116,450,2442,025,0001,012,0002,277,376
11Feb 17, 2026 14:013,46120,208,5562,031,0001,015,0002,449,408
12Feb 17, 2026 14:023,48420,211,1392,044,0001,022,0002,437,120
13Feb 17, 2026 14:023,63218,177,5882,131,0001,065,0002,437,120
14Feb 17, 2026 13:593,77818,332,3763,325,00002,437,120
15Feb 17, 2026 14:014,30321,586,9783,787,00002,437,120