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:39Robert BurkeRobert BurkeScore: 36,839Success
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:3935,56993,109,28631,300,37002,228,224
2Aug 3, 2022 14:3935,65985,067,66631,379,91302,232,320
3Aug 3, 2022 14:3935,66494,228,30931,384,11002,232,320
4Aug 3, 2022 14:3936,49255,680,70131,110,0001,003,0002,265,088
5Aug 3, 2022 14:3936,58353,194,86931,187,0001,006,0002,392,064
6Aug 3, 2022 14:3936,58952,278,57531,192,0001,006,0002,387,968
7Aug 3, 2022 14:3936,83955,689,27231,405,0001,013,0002,387,968
8Aug 3, 2022 14:3936,92455,625,08332,493,00002,387,968
9Aug 3, 2022 14:3937,03652,044,07632,592,00002,535,424
10Aug 3, 2022 14:3937,05152,478,55132,605,00002,396,160
11Aug 3, 2022 14:3937,15656,575,06332,697,00002,273,280
12Aug 3, 2022 14:3937,39456,559,49731,910,000997,0002,396,160