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 28, 2022 06:13Robert BurkeRobert BurkeScore: 26,977Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 28, 2022 06:1326,76644,006,25622,530,0001,024,0002,379,776
2Dec 28, 2022 06:1326,79547,084,87722,555,0001,025,0002,375,680
3Dec 28, 2022 06:1326,87543,965,64123,650,00002,375,680
4Dec 28, 2022 06:1326,88143,832,63423,655,00002,371,584
5Dec 28, 2022 06:1326,94151,168,09821,647,0002,061,0002,281,472
6Dec 28, 2022 06:1326,97651,842,63622,707,0001,032,0002,375,680
7Dec 28, 2022 06:1326,97756,184,57621,676,0002,064,0002,379,776
8Dec 28, 2022 06:1327,02350,690,52722,747,0001,033,0002,486,272
9Dec 28, 2022 06:1327,15651,437,97422,902,000995,0002,281,472
10Dec 28, 2022 06:1327,49193,901,78724,192,24702,211,840
11Dec 28, 2022 06:1327,58492,840,27524,274,30002,211,840
12Dec 28, 2022 06:1327,63882,900,19524,321,00502,211,840