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 listDec 19, 2025 17:31Wookyung JeongWookyung JeongScore: 1,052,853Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 19, 2025 17:311,045,452941,926,585918,999,000999,0002,285,568
2Dec 19, 2025 17:311,045,553948,532,514918,087,0002,000,0002,277,376
3Dec 19, 2025 17:311,046,355944,897,560919,793,000999,0002,285,568
4Dec 19, 2025 17:311,051,622951,722,824924,427,0001,000,0002,277,376
5Dec 19, 2025 17:311,051,772951,299,931925,559,00002,289,664
6Dec 19, 2025 17:311,051,859955,557,703923,637,0001,999,0002,285,568
7Dec 19, 2025 17:311,052,226952,065,790923,960,0001,999,0002,285,568
8Dec 19, 2025 17:311,052,424946,768,650926,133,00002,285,568
9Dec 19, 2025 17:311,052,750954,677,657924,422,0001,998,0002,285,568
10Dec 19, 2025 17:311,052,853951,622,564924,513,0001,998,0002,277,376
11Dec 19, 2025 17:311,053,852958,371,117927,390,00002,449,408
12Dec 19, 2025 17:311,054,257950,499,214923,748,0003,998,0002,437,120
13Dec 19, 2025 17:311,054,855952,603,464927,272,0001,000,0002,285,568
14Dec 19, 2025 17:311,056,207959,988,907927,464,0001,998,0002,453,504
15Dec 19, 2025 17:311,057,533963,071,249929,630,000999,0002,285,568
16Dec 19, 2025 17:311,057,692955,115,641928,770,0001,999,0002,449,408
17Dec 19, 2025 17:311,057,939955,146,868928,987,0001,999,0002,449,408
18Dec 19, 2025 17:311,058,447962,489,823929,435,0001,998,0002,445,312