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 3, 2025 03:41wainCGPwainCGPScore: 25,208Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 3, 2025 03:4125,08045,599,86920,064,0002,006,0002,289,664
2Mar 3, 2025 03:4125,14246,720,65220,114,0002,011,0002,273,280
3Mar 3, 2025 03:4125,14747,520,56220,118,0002,011,0002,277,376
4Mar 3, 2025 03:4125,15947,155,04021,134,0001,006,0002,289,664
5Mar 3, 2025 03:4125,20851,491,68121,175,0001,008,0002,269,184
6Mar 3, 2025 03:4125,20948,240,91420,168,0002,016,0002,289,664
7Mar 3, 2025 03:4125,31943,235,13420,256,0002,025,0002,289,664
8Mar 3, 2025 03:4125,33344,592,46320,267,0002,026,0002,265,088
9Mar 3, 2025 03:4125,39842,815,00421,335,0001,015,0002,289,664