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 1, 2025 16:13wainCGPwainCGPScore: 29,668Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 16:1329,49747,000,89724,959,000998,0002,289,664
2Mar 1, 2025 16:1329,50648,890,91323,968,0001,997,0002,383,872
3Mar 1, 2025 16:1329,52055,011,02923,980,0001,998,0002,289,664
4Mar 1, 2025 16:1329,59452,783,98424,040,0002,003,0002,289,664
5Mar 1, 2025 16:1329,66851,679,20125,104,0001,004,0002,289,664
6Mar 1, 2025 16:1329,68452,974,51424,113,0002,009,0002,273,280
7Mar 1, 2025 16:1329,72459,395,54724,145,0002,012,0002,289,664
8Mar 1, 2025 16:1329,72755,685,11824,148,0002,012,0002,273,280
9Mar 1, 2025 16:1329,75749,574,37824,172,0002,014,0002,281,472