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 listDec 9, 2024 01:36zielajzielajScore: 30,598Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 9, 2024 01:3630,56952,813,87625,905,000996,0002,453,504
2Dec 9, 2024 01:3630,57654,684,67926,907,00002,269,184
3Dec 9, 2024 01:3630,57657,472,22725,911,000996,0002,269,184
4Dec 9, 2024 01:3630,59451,333,63225,926,000997,0002,531,328
5Dec 9, 2024 01:3630,59849,939,29225,929,000997,0002,355,200
6Dec 9, 2024 01:3630,64347,574,81925,968,000998,0002,531,328
7Dec 9, 2024 01:3630,69049,371,32125,007,0002,000,0002,363,392
8Dec 9, 2024 01:3630,73554,409,47125,044,0002,003,0002,363,392
9Dec 9, 2024 01:3630,80248,632,68825,099,0002,007,0002,531,328