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 1, 2025 05:54wainCGPwainCGPScore: 30,024Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Mar 1, 2025 05:5429,78857,132,20524,197,0002,016,0002,289,664
2Mar 1, 2025 05:5429,79055,913,38724,199,0002,016,0002,273,280
3Mar 1, 2025 05:5429,94453,561,25626,351,00002,277,376
4Mar 1, 2025 05:5429,96056,312,13725,351,0001,014,0002,273,280
5Mar 1, 2025 05:5430,02447,946,90125,405,0001,016,0002,277,376
6Mar 1, 2025 05:5430,08150,946,53125,453,0001,018,0002,289,664
7Mar 1, 2025 05:5430,11449,577,82026,500,00002,289,664
8Mar 1, 2025 05:5430,13456,849,07125,499,0001,019,0002,289,664
9Mar 1, 2025 05:5430,18952,482,52625,545,0001,021,0002,289,664