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 listJul 11, 2025 14:43haxorarthaxorartScore: 466,791Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 11, 2025 14:43464,480437,440,496406,739,0002,003,0002,506,752
2Jul 11, 2025 14:43464,611441,164,176401,861,0006,997,0002,510,848
3Jul 11, 2025 14:43465,411441,124,135408,561,0001,001,0002,334,720
4Jul 11, 2025 14:43466,028439,519,485407,105,0003,000,0002,330,624
5Jul 11, 2025 14:43466,791437,544,679404,780,0005,996,0002,404,352
6Jul 11, 2025 14:43467,507440,777,592408,411,0002,995,0002,408,448
7Jul 11, 2025 14:43468,192435,943,487408,009,0004,000,0002,289,664
8Jul 11, 2025 14:43469,955444,908,352408,554,0005,006,0002,400,256
9Jul 11, 2025 14:43473,069441,012,949410,297,0006,004,0002,281,472