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 listOct 15, 2026 16:56zayd-ansari-codezayd-ansari-codeScore: 6,767,411Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 15, 2026 17:046,754,4305,955,100,4995,942,899,0001,000,0002,113,536
2Oct 15, 2026 17:046,767,4115,966,494,9835,954,322,0001,000,0002,113,536
3Oct 15, 2026 17:046,841,2396,031,752,8416,018,199,0002,092,0002,113,536