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 12, 2025 23:57Jasper EdbrookeJasper EdbrookeScore: 117,036Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2025 23:57116,889131,509,636101,864,000998,0002,285,568
2Dec 12, 2025 23:57116,893133,529,420100,869,0001,997,0002,285,568
3Dec 12, 2025 23:57116,913128,411,373100,886,0001,997,0002,519,040
4Dec 12, 2025 23:57116,953127,380,504101,920,000999,0002,285,568
5Dec 12, 2025 23:57117,036128,738,903100,993,0001,999,0002,265,088
6Dec 12, 2025 23:57117,101131,447,751102,049,0001,000,0002,260,992
7Dec 12, 2025 23:57117,227129,073,419101,157,0002,003,0002,523,136
8Dec 12, 2025 23:57117,261132,952,718102,189,0001,001,0002,285,568
9Dec 12, 2025 23:57117,550136,874,325103,444,00002,285,568