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 06:32wainCGPwainCGPScore: 17,876Success
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 06:3217,84031,067,86814,653,0001,046,0002,289,664
2Mar 16, 2025 06:3217,86539,543,66914,673,0001,048,0002,289,664
3Mar 16, 2025 06:3217,86648,217,92614,674,0001,048,0002,510,848
4Mar 16, 2025 06:3217,87244,372,84014,679,0001,048,0002,277,376
5Mar 16, 2025 06:3217,87642,890,96514,683,0001,048,0002,289,664
6Mar 16, 2025 06:3217,89736,527,11115,749,00002,289,664
7Mar 16, 2025 06:3218,04542,282,08014,888,000992,0002,269,184
8Mar 16, 2025 06:3218,07536,719,80314,912,000994,0002,289,664
9Mar 16, 2025 06:3218,08044,079,53114,916,000994,0002,269,184