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 10, 2025 00:43k11ik11iScore: 109,957Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 10, 2025 00:43109,580120,124,40994,422,0002,008,0002,387,968
2Mar 10, 2025 00:43109,644124,048,65695,482,0001,005,0002,400,256
3Mar 10, 2025 00:43109,725118,340,79395,553,0001,005,0002,289,664
4Mar 10, 2025 00:43109,874125,153,29894,675,0002,014,0002,281,472
5Mar 10, 2025 00:43109,957124,934,31595,755,0001,007,0002,396,160
6Mar 10, 2025 00:43110,056127,396,28694,853,0001,996,0002,281,472
7Mar 10, 2025 00:43110,126119,949,19594,913,0001,998,0002,289,664
8Mar 10, 2025 00:43110,255120,905,01596,024,0001,000,0002,473,984
9Mar 10, 2025 00:43110,263120,163,94295,031,0002,000,0002,490,368