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:08andrei445andrei445Score: 2,927,963Success
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:082,904,5302,578,726,3142,268,101,000287,885,0002,277,376
2Jan 30, 2025 19:082,913,7382,589,212,3462,246,202,000317,887,0002,289,664
3Jan 30, 2025 19:082,924,3662,603,135,6062,274,507,000298,935,0002,289,664
4Jan 30, 2025 19:082,925,6152,604,129,2752,273,595,000300,946,0002,277,376
5Jan 30, 2025 19:082,927,9632,604,861,0142,266,775,000309,832,0002,289,664
6Jan 30, 2025 19:082,929,4422,605,429,3822,273,038,000304,871,0002,277,376
7Jan 30, 2025 19:082,932,1972,603,334,4202,252,418,000327,915,0002,277,376
8Jan 30, 2025 19:082,937,5642,607,685,7382,280,168,000304,888,0002,277,376
9Jan 30, 2025 19:082,942,5502,615,764,1732,296,507,000292,937,0002,277,376