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 listJul 31, 2022 15:00Robert BurkeRobert BurkeScore: 37,414Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 31, 2022 15:0037,09557,454,22132,644,00002,457,600
2Jul 31, 2022 15:0037,14459,306,45031,666,0001,021,0002,437,120
3Jul 31, 2022 15:0037,15560,508,69331,675,0001,021,0002,441,216
4Jul 31, 2022 15:0037,20857,425,67430,697,0002,046,0002,273,280
5Jul 31, 2022 15:0037,39159,880,65531,907,000997,0002,445,312
6Jul 31, 2022 15:0037,39761,749,13730,915,0001,994,0002,535,424
7Jul 31, 2022 15:0037,41458,661,42832,924,00002,445,312
8Jul 31, 2022 15:0037,43952,893,01130,950,0001,996,0002,535,424
9Jul 31, 2022 15:0037,45251,981,64431,960,000998,0002,273,280
10Jul 31, 2022 15:0037,51592,124,34233,013,60902,273,280
11Jul 31, 2022 15:0037,75793,344,26833,226,59702,285,568
12Jul 31, 2022 15:0037,798101,310,33333,262,01602,293,760