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 15:54Victor MerckléVictor MerckléScore: 3,147Success
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 15:583,12010,970,9092,746,00002,117,632stderr
2Aug 29, 2026 15:583,12010,975,9312,746,00002,117,632stderr
3Aug 29, 2026 15:583,12510,971,0332,750,00002,117,632stderr
4Aug 29, 2026 15:583,12810,972,0602,753,00002,117,632stderr
5Aug 29, 2026 15:583,14710,977,6662,770,00002,117,632stderr
6Aug 29, 2026 15:583,22711,028,1872,840,00002,117,632stderr
7Aug 29, 2026 15:583,22811,001,9032,841,00002,117,632stderr
8Aug 29, 2026 15:583,22911,004,6112,842,00002,117,632stderr
9Aug 29, 2026 15:583,24711,039,6012,858,00002,117,632stderr