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 listFeb 23, 2024 03:50Yuriy LyfenkoYuriy LyfenkoScore: 29,595Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Feb 23, 2024 03:5029,30656,181,87324,758,0001,031,0002,285,568
2Feb 23, 2024 03:5029,42756,257,69924,900,000996,0002,277,376
3Feb 23, 2024 03:5029,44057,989,09323,915,0001,992,0002,285,568
4Feb 23, 2024 03:5029,48349,544,58323,950,0001,995,0002,285,568
5Feb 23, 2024 03:5029,51149,524,22124,972,000998,0002,269,184
6Feb 23, 2024 03:5029,57253,513,84425,023,0001,000,0002,277,376
7Feb 23, 2024 03:5029,59548,256,36224,041,0002,003,0002,273,280
8Feb 23, 2024 03:5029,62554,434,54925,068,0001,002,0002,285,568
9Feb 23, 2024 03:5029,66749,590,48424,099,0002,008,0002,285,568
10Feb 23, 2024 03:5030,73997,183,82927,050,60602,248,704
11Feb 23, 2024 03:5030,83494,655,40327,134,16502,265,088
12Feb 23, 2024 03:5030,90494,003,57127,195,44602,252,800