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 14:53zielajzielajScore: 3,468Success
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 16:453,37623,332,0971,981,000990,0002,519,040
2Jan 10, 2025 14:483,40022,725,4051,995,000997,0002,510,848
3Jan 10, 2025 14:483,43017,315,2312,012,0001,006,0002,523,136
4Jan 10, 2025 16:453,44319,514,7382,020,0001,010,0002,510,848
5Jan 10, 2025 16:453,45019,538,5672,024,0001,012,0002,523,136
6Jan 10, 2025 16:453,45522,766,9642,027,0001,013,0002,523,136
7Jan 10, 2025 14:533,45818,257,6481,014,0002,029,0002,523,136
8Jan 10, 2025 16:453,45818,930,0812,029,0001,014,0002,510,848
9Jan 10, 2025 14:493,46121,309,2691,015,0002,031,0002,519,040
10Jan 10, 2025 14:493,46823,625,8672,035,0001,017,0002,510,848
11Jan 10, 2025 16:453,47023,195,6682,036,0001,018,0002,519,040
12Jan 10, 2025 14:533,49518,749,8542,051,0001,025,0002,539,520
13Jan 10, 2025 16:453,53019,475,2322,071,0001,035,0002,519,040
14Jan 10, 2025 14:533,58024,829,8102,100,0001,050,0002,535,424
15Jan 10, 2025 14:483,60724,095,5721,058,0002,116,0002,510,848
16Jan 10, 2025 14:493,61125,255,9991,059,0002,119,0002,510,848
17Jan 10, 2025 16:454,26317,858,2113,751,00002,535,424
18Jan 10, 2025 16:454,46819,308,8022,949,000983,0002,273,280