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 13, 2025 10:56wainCGPwainCGPScore: 18,167Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 13, 2025 10:5618,10134,235,20514,934,000995,0002,273,280
2Mar 13, 2025 10:5618,11137,799,81213,946,0001,992,0002,289,664
3Mar 13, 2025 10:5618,12034,801,98513,953,0001,993,0002,289,664
4Mar 13, 2025 10:5618,14738,682,18513,973,0001,996,0002,289,664
5Mar 13, 2025 10:5618,16736,786,40313,989,0001,998,0002,289,664
6Mar 13, 2025 10:5618,25937,802,94914,060,0002,008,0002,289,664
7Mar 13, 2025 10:5618,27740,910,24115,079,0001,005,0002,289,664
8Mar 13, 2025 10:5618,28037,499,96214,076,0002,010,0002,277,376
9Mar 13, 2025 10:5618,30744,915,79315,104,0001,006,0002,273,280