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 24, 2023 01:14Kenneth MaplesKenneth MaplesScore: 35,920Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 24, 2023 01:1435,75855,726,71030,452,0001,015,0002,387,968
2Dec 24, 2023 01:1435,85654,709,93531,553,00002,265,088
3Dec 24, 2023 01:1435,86852,402,80530,546,0001,018,0002,265,088
4Dec 24, 2023 01:1435,88358,967,02730,559,0001,018,0002,265,088
5Dec 24, 2023 01:1435,90255,022,23330,575,0001,019,0002,392,064
6Dec 24, 2023 01:1435,91054,284,51831,601,00002,269,184
7Dec 24, 2023 01:1435,92059,297,48631,610,00002,265,088
8Dec 24, 2023 01:1435,95657,417,43930,621,0001,020,0002,387,968
9Dec 24, 2023 01:1435,99156,672,18930,651,0001,021,0002,265,088
10Dec 24, 2023 01:1436,63684,126,16532,239,32602,236,416
11Dec 24, 2023 01:1436,64093,230,96032,242,78602,228,224
12Dec 24, 2023 01:1436,72098,841,40032,313,25802,236,416