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 9, 2025 07:28wainCGPwainCGPScore: 18,410Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 9, 2025 07:2818,31731,650,30715,112,0001,007,0002,273,280
2Mar 9, 2025 07:2818,36652,488,34715,152,0001,010,0002,289,664
3Mar 9, 2025 07:2818,37436,414,25114,148,0002,021,0002,269,184
4Mar 9, 2025 07:2818,40134,383,81314,169,0002,024,0002,289,664
5Mar 9, 2025 07:2818,41036,085,30114,176,0002,025,0002,277,376
6Mar 9, 2025 07:2818,44234,101,84114,201,0002,028,0002,265,088
7Mar 9, 2025 07:2818,51634,306,61814,258,0002,036,0002,289,664
8Mar 9, 2025 07:2818,60544,171,18514,326,0002,046,0002,289,664
9Mar 9, 2025 07:2818,63038,854,16314,345,0002,049,0002,289,664