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 18, 2026 15:10limanjun99limanjun99Score: 47,840Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 18, 2026 15:1047,60866,882,77440,898,000997,0002,297,856
2Mar 18, 2026 15:1047,79267,579,00640,055,0002,002,0002,297,856
3Mar 18, 2026 15:1047,80966,079,69240,069,0002,003,0002,420,736
4Mar 18, 2026 15:1047,83970,270,87940,094,0002,004,0002,433,024
5Mar 18, 2026 15:1047,84066,677,00540,095,0002,004,0002,420,736
6Mar 18, 2026 15:1047,91871,061,36140,160,0002,008,0002,478,080
7Mar 18, 2026 15:1047,94264,411,95940,180,0002,009,0002,289,664
8Mar 18, 2026 15:1047,94964,512,22741,191,0001,004,0002,416,640
9Mar 18, 2026 15:1047,95968,830,44140,195,0002,009,0002,424,832