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 listAug 1, 2025 18:38Arseniy KorobenkoArseniy KorobenkoScore: 19,314,531Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 1, 2025 18:3819,189,54416,924,874,92416,886,799,00002,326,528
2Aug 1, 2025 18:3819,222,20616,948,925,96216,915,541,00002,326,528
3Aug 1, 2025 18:3819,243,48816,970,100,42216,932,271,0001,998,0002,322,432
4Aug 1, 2025 18:3819,245,69016,979,429,86416,935,208,000999,0002,326,528
5Aug 1, 2025 18:3819,314,53117,029,084,58416,995,788,000999,0002,326,528
6Aug 1, 2025 18:3819,321,81417,038,647,72317,001,197,0001,999,0002,322,432
7Aug 1, 2025 18:3819,354,60817,064,869,11517,031,056,000999,0002,322,432
8Aug 1, 2025 18:3819,372,73417,084,740,64317,046,007,0001,999,0002,326,528
9Aug 1, 2025 18:3819,414,69117,120,642,70117,082,930,0001,998,0002,326,528