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 19:28Wookyung JeongWookyung JeongScore: 215,882Success
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 19:28214,789212,148,404188,014,0001,000,0002,273,280
2Dec 19, 2025 19:28215,115210,666,858188,300,0001,001,0002,400,256
3Dec 19, 2025 19:28215,344215,761,850188,501,0001,002,0002,273,280
4Dec 19, 2025 19:28215,728218,460,711188,842,000999,0002,273,280
5Dec 19, 2025 19:28215,882212,818,085187,977,0001,999,0002,404,352
6Dec 19, 2025 19:28215,990218,273,088189,071,0001,000,0002,273,280
7Dec 19, 2025 19:28216,131219,956,020189,194,0001,001,0002,400,256
8Dec 19, 2025 19:28216,499223,526,202189,517,0001,002,0002,400,256
9Dec 19, 2025 19:28217,125216,774,209189,070,0002,000,0002,273,280