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 11, 2025 00:38k11ik11iScore: 82,799Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 11, 2025 00:3882,40094,621,63071,505,0001,007,0002,273,280
2Mar 11, 2025 00:3882,501101,997,21972,601,00002,281,472
3Mar 11, 2025 00:3882,50595,296,25271,596,0001,008,0002,289,664
4Mar 11, 2025 00:3882,52593,327,90171,614,0001,008,0002,273,280
5Mar 11, 2025 00:3882,799101,144,91371,865,000998,0002,289,664
6Mar 11, 2025 00:3882,816103,718,96070,882,0001,996,0002,289,664
7Mar 11, 2025 00:3882,823100,439,52570,888,0001,996,0002,523,136
8Mar 11, 2025 00:3882,91595,574,88970,966,0001,999,0002,273,280
9Mar 11, 2025 00:3882,94195,558,18871,989,000999,0002,281,472