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 listMar 18, 2026 15:11limanjun99limanjun99Score: 47,395Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:1147,18562,921,29740,511,0001,012,0002,453,504
2Mar 18, 2026 15:1147,32467,925,08640,630,0001,015,0002,490,368
3Mar 18, 2026 15:1147,36670,692,59440,666,0001,016,0002,449,408
4Mar 18, 2026 15:1147,37772,360,81540,676,0001,016,0002,375,680
5Mar 18, 2026 15:1147,39572,035,45740,691,0001,017,0002,449,408
6Mar 18, 2026 15:1147,41567,778,84740,708,0001,017,0002,412,544
7Mar 18, 2026 15:1147,42568,109,49241,734,00002,449,408
8Mar 18, 2026 15:1147,44866,200,35040,736,0001,018,0002,449,408
9Mar 18, 2026 15:1147,44873,744,87539,766,0001,988,0002,265,088