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 listDec 27, 2025 15:26Josu San MartinJosu San MartinScore: 242,945Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 27, 2025 15:26241,816236,918,246211,799,000999,0002,289,664
2Dec 27, 2025 15:26242,219236,605,846212,153,0001,000,0002,289,664
3Dec 27, 2025 15:26242,230235,169,368211,161,0002,001,0002,367,488
4Dec 27, 2025 15:26242,823239,585,701213,684,00002,289,664
5Dec 27, 2025 15:26242,945239,150,381212,793,000999,0002,359,296
6Dec 27, 2025 15:26243,158242,714,855211,980,0001,999,0002,367,488
7Dec 27, 2025 15:26243,576241,545,797214,347,00002,355,200
8Dec 27, 2025 15:26243,903243,312,841213,633,0001,002,0002,289,664
9Dec 27, 2025 15:26244,052245,716,428213,768,000998,0002,289,664