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:39k11ik11iScore: 82,769Success
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:3982,27093,534,54071,393,0001,005,0002,277,376
2Mar 11, 2025 00:3982,42795,877,90572,536,00002,289,664
3Mar 11, 2025 00:3982,524102,337,04971,613,0001,008,0002,273,280
4Mar 11, 2025 00:3982,65798,954,46271,728,0001,010,0002,265,088
5Mar 11, 2025 00:3982,76995,128,91171,840,000997,0002,289,664
6Mar 11, 2025 00:3982,80897,795,18771,873,000998,0002,277,376
7Mar 11, 2025 00:3982,80998,920,41370,876,0001,996,0002,289,664
8Mar 11, 2025 00:3982,816103,164,41671,880,000998,0002,265,088
9Mar 11, 2025 00:3982,838107,266,28471,899,000998,0002,269,184