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 listDec 12, 2025 23:11Jasper EdbrookeJasper EdbrookeScore: 123,708Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 12, 2025 23:11123,452137,362,524107,633,0001,005,0002,277,376
2Dec 12, 2025 23:11123,500135,582,870107,674,0001,006,0002,260,992
3Dec 12, 2025 23:11123,574137,017,695106,732,0002,013,0002,285,568
4Dec 12, 2025 23:11123,700135,137,279105,860,0002,996,0002,375,680
5Dec 12, 2025 23:11123,708134,695,663106,866,0001,997,0002,265,088
6Dec 12, 2025 23:11123,716132,939,260107,872,000998,0002,285,568
7Dec 12, 2025 23:11123,723133,801,020105,880,0002,996,0002,285,568
8Dec 12, 2025 23:11123,751136,763,619106,903,0001,998,0002,265,088
9Dec 12, 2025 23:11123,877134,963,963107,012,0002,000,0002,285,568