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 9, 2025 23:46zielajzielajScore: 3,475Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 9, 2025 23:463,44418,320,5311,010,0002,021,0002,510,848
2Jan 9, 2025 23:483,44416,571,3052,021,0001,010,0002,539,520
3Jan 9, 2025 23:463,45023,851,9362,024,0001,012,0002,506,752
4Jan 9, 2025 23:463,45318,058,0002,026,0001,013,0002,535,424
5Jan 9, 2025 23:483,45825,061,4001,014,0002,029,0002,506,752
6Jan 9, 2025 23:463,46819,493,1232,035,0001,017,0002,510,848
7Jan 9, 2025 23:463,47520,663,5472,039,0001,019,0002,506,752
8Jan 9, 2025 23:463,49817,930,1891,026,0002,052,0002,535,424
9Jan 9, 2025 23:463,58420,735,2171,051,0002,103,0002,539,520
10Jan 9, 2025 23:464,18524,342,9893,683,00002,273,280
11Jan 9, 2025 23:484,27620,126,9173,763,00002,506,752
12Jan 9, 2025 23:464,46618,276,5462,948,000982,0002,502,656