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 listAug 29, 2026 12:15Victor MerckléVictor MerckléScore: 3,205Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 29, 2026 12:193,09610,941,0502,725,00002,117,632stderr
2Aug 29, 2026 12:193,19210,932,8902,809,00002,117,632stderr
3Aug 29, 2026 12:193,19510,947,4132,812,00002,117,632stderr
4Aug 29, 2026 12:193,20010,985,6232,816,00002,117,632stderr
5Aug 29, 2026 12:193,20511,527,9732,821,00002,117,632stderr
6Aug 29, 2026 12:193,20610,951,2402,822,00002,117,632stderr
7Aug 29, 2026 12:193,22110,966,2922,835,00002,117,632stderr
8Aug 29, 2026 12:193,25111,041,4492,861,00002,117,632stderr
9Aug 29, 2026 12:193,40311,124,0052,995,00002,117,632stderr