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 listJan 30, 2025 19:19andrei445andrei445Score: 2,264,839Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 30, 2025 19:192,249,4552,003,273,4531,979,520,00002,289,664
2Jan 30, 2025 19:192,254,4282,011,601,6361,980,899,0002,998,0002,289,664
3Jan 30, 2025 19:192,259,7282,016,272,4901,986,562,0001,999,0002,289,664
4Jan 30, 2025 19:192,260,2902,021,093,1931,986,057,0002,998,0002,273,280
5Jan 30, 2025 19:192,264,8392,020,493,3281,992,059,000999,0002,289,664
6Jan 30, 2025 19:192,265,2392,024,004,5381,992,411,000999,0002,269,184
7Jan 30, 2025 19:192,265,8672,025,313,7791,989,966,0003,997,0002,273,280
8Jan 30, 2025 19:192,268,1732,020,558,4571,995,992,00002,277,376
9Jan 30, 2025 19:192,269,7892,026,165,3321,996,415,000999,0002,289,664