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 23, 2023 06:54Kenneth MaplesKenneth MaplesScore: 56,624Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 23, 2023 06:5449,566117,845,23843,617,75802,252,800
2Dec 23, 2023 06:5449,702108,353,93643,737,68002,252,800
3Dec 23, 2023 06:5449,705114,590,63843,740,23602,260,992
4Dec 23, 2023 06:5456,42472,846,72748,640,0001,013,0002,281,472
5Dec 23, 2023 06:5456,54078,913,83148,740,0001,015,0002,289,664
6Dec 23, 2023 06:5456,54578,602,09649,760,00002,273,280
7Dec 23, 2023 06:5456,62475,953,02647,836,0001,993,0002,289,664
8Dec 23, 2023 06:5456,68375,717,36949,881,00002,289,664
9Dec 23, 2023 06:5456,68481,559,05649,882,00002,273,280
10Dec 23, 2023 06:5456,74473,610,17947,938,0001,997,0002,277,376
11Dec 23, 2023 06:5456,76771,704,23448,956,000999,0002,273,280
12Dec 23, 2023 06:5456,90571,405,71349,075,0001,001,0002,289,664