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 12, 2025 00:55k11ik11iScore: 82,811Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 12, 2025 00:5582,56997,178,54971,652,0001,009,0002,289,664
2Mar 12, 2025 00:5582,60298,201,10771,681,0001,009,0002,523,136
3Mar 12, 2025 00:5582,61199,596,83271,689,0001,009,0002,273,280
4Mar 12, 2025 00:5582,63296,820,21670,724,0001,992,0002,289,664
5Mar 12, 2025 00:5582,81198,410,63970,878,0001,996,0002,392,064
6Mar 12, 2025 00:5582,816104,663,47970,882,0001,996,0002,269,184
7Mar 12, 2025 00:5582,84098,036,78370,902,0001,997,0002,289,664
8Mar 12, 2025 00:5582,84297,292,62070,904,0001,997,0002,269,184
9Mar 12, 2025 00:5582,922100,978,10971,972,000999,0002,523,136