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 13:49Victor MerckléVictor MerckléScore: 3,204Success
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 13:543,19511,066,6242,812,00002,117,632stderr
2Aug 29, 2026 13:543,19510,953,6752,812,00002,117,632stderr
3Aug 29, 2026 13:543,20011,057,4222,816,00002,117,632stderr
4Aug 29, 2026 13:543,20111,034,3822,817,00002,117,632stderr
5Aug 29, 2026 13:543,20410,981,3492,820,00002,117,632stderr
6Aug 29, 2026 13:543,21111,018,7822,826,00002,117,632stderr
7Aug 29, 2026 13:543,21510,924,7212,830,00002,117,632stderr
8Aug 29, 2026 13:543,21811,058,7562,832,00002,117,632stderr
9Aug 29, 2026 13:543,33611,127,0722,936,00002,117,632stderr