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 04:52Robert BurkeRobert BurkeScore: 18,980Success
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 04:5218,58673,172,47016,356,02802,232,320
2Dec 28, 2022 04:5218,63889,985,44016,401,15602,228,224
3Dec 28, 2022 04:5218,66676,986,65116,426,41502,232,320
4Dec 28, 2022 04:5218,93934,871,42316,666,00002,400,256
5Dec 28, 2022 04:5218,94731,315,56415,631,0001,042,0002,490,368
6Dec 28, 2022 04:5218,97438,475,14316,697,00002,273,280
7Dec 28, 2022 04:5218,98035,937,87216,702,00002,486,272
8Dec 28, 2022 04:5218,99044,743,58815,667,0001,044,0002,400,256
9Dec 28, 2022 04:5219,02639,019,89116,743,00002,523,136
10Dec 28, 2022 04:5219,02729,692,73115,698,0001,046,0002,396,160
11Dec 28, 2022 04:5219,03042,236,68915,700,0001,046,0002,392,064
12Dec 28, 2022 04:5219,05234,830,77716,766,00002,400,256