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 10, 2025 00:50zielajzielajScore: 3,460Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 10, 2025 00:503,41418,410,9292,003,0001,001,0002,281,472
2Jan 10, 2025 00:503,43819,860,2742,017,0001,008,0002,506,752
3Jan 10, 2025 00:503,44320,747,6222,020,0001,010,0002,527,232
4Jan 10, 2025 00:503,45827,748,9702,029,0001,014,0002,539,520
5Jan 10, 2025 00:503,46023,670,6282,030,0001,015,0002,277,376
6Jan 10, 2025 00:503,46120,924,0852,031,0001,015,0002,531,328
7Jan 10, 2025 00:503,46123,750,9702,031,0001,015,0002,531,328
8Jan 10, 2025 00:504,29424,404,2893,779,00002,527,232
9Jan 10, 2025 00:504,32417,929,1763,805,00002,527,232