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 1, 2022 17:01apuxbtapuxbtScore: 30,574Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 1, 2022 17:0130,29549,323,61426,660,00002,392,064
2Dec 1, 2022 17:0130,37356,922,01025,700,0001,028,0002,269,184
3Dec 1, 2022 17:0130,37657,531,58425,703,0001,028,0002,265,088
4Dec 1, 2022 17:0130,38553,013,78526,739,00002,265,088
5Dec 1, 2022 17:0130,56158,657,09625,898,000996,0002,265,088
6Dec 1, 2022 17:0130,56452,422,26424,904,0001,992,0002,265,088
7Dec 1, 2022 17:0130,57452,644,15825,909,000996,0002,383,872
8Dec 1, 2022 17:0130,60553,249,11525,935,000997,0002,379,776
9Dec 1, 2022 17:0130,635105,509,91926,959,14302,232,320
10Dec 1, 2022 17:0130,66457,901,47225,985,000999,0002,387,968
11Dec 1, 2022 17:0130,69595,317,56227,011,24102,228,224
12Dec 1, 2022 17:0130,706109,198,80027,021,03302,224,128