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 12, 2025 08:30k11ik11iScore: 74,592Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 12, 2025 08:3074,34492,449,99964,417,0001,006,0002,269,184
2Mar 12, 2025 08:3074,40687,127,00264,470,0001,007,0002,367,488
3Mar 12, 2025 08:3074,51790,264,15664,567,0001,008,0002,289,664
4Mar 12, 2025 08:3074,54995,669,66064,594,0001,009,0002,289,664
5Mar 12, 2025 08:3074,59296,634,28464,632,0001,009,0002,289,664
6Mar 12, 2025 08:3074,60687,599,45265,653,00002,281,472
7Mar 12, 2025 08:3074,61698,225,65464,652,0001,010,0002,289,664
8Mar 12, 2025 08:3074,64892,041,95664,680,0001,010,0002,277,376
9Mar 12, 2025 08:3074,69093,987,74164,732,000995,0002,289,664