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:47Wookyung JeongWookyung JeongScore: 768,527Success
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:53763,165704,548,419670,586,000999,0002,519,040
2Dec 19, 2025 17:47764,494694,724,596670,756,0001,999,0002,285,568
3Dec 19, 2025 17:50764,876701,067,371672,091,0001,000,0002,285,568
4Dec 19, 2025 17:47765,694695,750,883671,812,0001,999,0002,523,136
5Dec 19, 2025 17:47765,775700,245,645671,883,0001,999,0002,285,568
6Dec 19, 2025 17:53766,517698,960,989673,536,000999,0002,519,040
7Dec 19, 2025 17:47766,592698,976,056673,602,000999,0002,285,568
8Dec 19, 2025 17:50766,627700,776,376674,632,00002,277,376
9Dec 19, 2025 17:53766,644706,934,737672,649,0001,998,0002,510,848
10Dec 19, 2025 17:50766,980696,868,001672,943,0001,999,0002,285,568
11Dec 19, 2025 17:53767,286700,702,507674,212,0001,000,0002,519,040
12Dec 19, 2025 17:50767,697712,544,643673,575,0001,998,0002,285,568
13Dec 19, 2025 17:50768,074699,308,839673,906,0001,999,0002,285,568
14Dec 19, 2025 17:53768,527702,883,558675,304,0001,000,0002,519,040
15Dec 19, 2025 17:53769,153703,275,513674,856,0001,999,0002,260,992
16Dec 19, 2025 17:50769,657705,211,827677,298,00002,260,992
17Dec 19, 2025 17:53770,110701,729,015675,698,0001,999,0002,519,040
18Dec 19, 2025 17:53770,440703,024,353675,988,0001,999,0002,265,088
19Dec 19, 2025 17:53770,747704,394,417676,257,0002,000,0002,285,568
20Dec 19, 2025 17:50770,994704,074,579677,475,0001,000,0002,383,872
21Dec 19, 2025 17:47771,553697,831,968676,968,0001,999,0002,519,040
22Dec 19, 2025 17:47771,892706,246,686678,265,0001,000,0002,285,568
23Dec 19, 2025 17:47772,250702,482,262677,582,0001,998,0002,285,568
24Dec 19, 2025 17:50772,334707,782,752678,655,000999,0002,260,992
25Dec 19, 2025 17:47772,563702,721,284677,856,0001,999,0002,519,040
26Dec 19, 2025 17:47773,815705,087,888679,958,000999,0002,277,376
27Dec 19, 2025 17:50775,131706,594,893681,115,0001,000,0002,519,040