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 listAug 3, 2022 14:38Robert BurkeRobert BurkeScore: 36,645Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Aug 3, 2022 14:3835,30291,503,34131,065,36002,232,320
2Aug 3, 2022 14:3835,58597,593,25031,314,76902,228,224
3Aug 3, 2022 14:3836,028105,227,95831,704,77502,260,992
4Aug 3, 2022 14:3836,49455,136,36931,112,0001,003,0002,273,280
5Aug 3, 2022 14:3836,52553,201,12130,134,0002,008,0002,535,424
6Aug 3, 2022 14:3836,60253,430,19431,204,0001,006,0002,387,968
7Aug 3, 2022 14:3836,64556,040,12031,241,0001,007,0002,273,280
8Aug 3, 2022 14:3836,69960,504,43130,277,0002,018,0002,396,160
9Aug 3, 2022 14:3836,85060,146,69732,428,00002,535,424
10Aug 3, 2022 14:3836,92857,323,32632,497,00002,273,280
11Aug 3, 2022 14:3836,99856,884,97832,558,00002,535,424
12Aug 3, 2022 14:3837,02356,013,63232,580,00002,392,064