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 15, 2025 09:15wainCGPwainCGPScore: 18,084Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 15, 2025 09:1517,94946,480,87614,742,0001,053,0002,289,664
2Mar 15, 2025 09:1518,02245,522,63213,745,0002,114,0002,396,160
3Mar 15, 2025 09:1518,06133,693,28213,908,0001,986,0002,289,664
4Mar 15, 2025 09:1518,06836,082,53715,900,00002,289,664
5Mar 15, 2025 09:1518,08432,023,45614,920,000994,0002,289,664
6Mar 15, 2025 09:1518,11340,562,92213,947,0001,992,0002,269,184
7Mar 15, 2025 09:1518,12238,562,38714,951,000996,0002,363,392
8Mar 15, 2025 09:1518,16037,241,79713,984,0001,997,0002,273,280
9Mar 15, 2025 09:1518,19832,795,34814,013,0002,001,0002,289,664