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 listMar 16, 2025 14:52wainCGPwainCGPScore: 17,903Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 16, 2025 14:5217,82030,909,75214,637,0001,045,0002,396,160
2Mar 16, 2025 14:5217,85746,270,45314,667,0001,047,0002,289,664
3Mar 16, 2025 14:5217,87245,821,95514,679,0001,048,0002,289,664
4Mar 16, 2025 14:5217,89446,202,69813,648,0002,099,0002,273,280
5Mar 16, 2025 14:5217,90342,555,75414,705,0001,050,0002,371,584
6Mar 16, 2025 14:5217,90633,847,00214,707,0001,050,0002,289,664
7Mar 16, 2025 14:5217,92433,453,75215,773,00002,273,280
8Mar 16, 2025 14:5218,07440,846,97013,917,0001,988,0002,289,664
9Mar 16, 2025 14:5218,07647,363,20113,919,0001,988,0002,289,664