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,866Success
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,33698,274,15331,095,25602,240,512
2Aug 3, 2022 14:3835,45396,262,39631,198,55702,236,416
3Aug 3, 2022 14:3835,78297,748,46931,488,34002,224,128
4Aug 3, 2022 14:3836,61354,837,45431,213,0001,006,0002,400,256
5Aug 3, 2022 14:3836,61451,913,73729,200,0003,020,0002,510,848
6Aug 3, 2022 14:3836,68151,246,33431,271,0001,008,0002,400,256
7Aug 3, 2022 14:3836,86658,408,57131,429,0001,013,0002,535,424
8Aug 3, 2022 14:3836,89952,385,40532,471,00002,273,280
9Aug 3, 2022 14:3836,95651,721,96932,521,00002,392,064
10Aug 3, 2022 14:3837,01153,343,04131,553,0001,017,0002,273,280
11Aug 3, 2022 14:3837,04352,078,85031,580,0001,018,0002,273,280
12Aug 3, 2022 14:3837,33662,244,58730,865,0001,991,0002,273,280