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:14andrei445andrei445Score: 2,644,597Success
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:162,629,8092,341,727,2452,020,330,000293,902,0002,277,376
2Jan 30, 2025 19:142,632,3062,339,332,6002,010,505,000305,924,0002,277,376
3Jan 30, 2025 19:142,636,1482,352,758,4192,014,967,000304,843,0002,273,280
4Jan 30, 2025 19:162,637,9752,349,753,2882,016,495,000304,923,0002,289,664
5Jan 30, 2025 19:142,639,5552,348,209,7202,031,832,000290,976,0002,277,376
6Jan 30, 2025 19:142,642,1512,352,611,1292,016,214,000308,879,0002,289,664
7Jan 30, 2025 19:142,644,5972,351,805,7182,008,349,000318,896,0002,289,664
8Jan 30, 2025 19:142,646,9772,359,118,8212,026,556,000302,784,0002,269,184
9Jan 30, 2025 19:142,648,2272,359,678,4922,041,510,000288,930,0002,289,664
10Jan 30, 2025 19:162,652,1012,354,678,2592,026,001,000307,848,0002,289,664
11Jan 30, 2025 19:142,655,9312,366,838,6142,030,322,000306,897,0002,277,376
12Jan 30, 2025 19:142,658,3252,359,795,2832,046,411,000292,915,0002,289,664