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 listNov 22, 2025 22:10Aleksei ShahoikaAleksei ShahoikaScore: 6,853,951Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 22, 2025 22:106,833,8436,038,006,2596,012,783,000999,0002,277,376
2Nov 22, 2025 22:106,837,8146,044,243,0556,015,277,0001,999,0002,289,664
3Nov 22, 2025 22:106,847,4326,052,979,8486,023,742,0001,998,0002,277,376
4Nov 22, 2025 22:106,849,4096,054,863,6106,025,481,0001,999,0002,277,376
5Nov 22, 2025 22:106,853,9516,060,798,3736,030,478,000999,0002,260,992
6Nov 22, 2025 22:106,854,4306,061,963,2696,027,901,0003,997,0002,277,376
7Nov 22, 2025 22:106,861,1186,067,882,7746,035,786,0001,998,0002,306,048
8Nov 22, 2025 22:106,864,6236,069,849,7026,037,870,0002,998,0002,277,376
9Nov 22, 2025 22:106,868,9136,073,762,8386,042,645,0001,998,0002,277,376