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 listMay 1, 2024 14:25Yuriy LyfenkoYuriy LyfenkoScore: 27,222Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 1, 2024 14:2527,12450,730,04122,875,000994,0002,265,088
2May 1, 2024 14:2527,16053,996,54321,910,0001,991,0002,265,088
3May 1, 2024 14:2527,16956,119,03621,917,0001,992,0002,265,088
4May 1, 2024 14:2527,17349,492,63921,920,0001,992,0002,269,184
5May 1, 2024 14:2527,17347,894,75323,912,00002,383,872
6May 1, 2024 14:2527,17848,422,34722,878,0001,039,0002,527,232
7May 1, 2024 14:2527,22255,560,91021,959,0001,996,0002,265,088
8May 1, 2024 14:2527,28649,310,69822,011,0002,001,0002,473,984
9May 1, 2024 14:2527,31151,301,55523,033,0001,001,0002,527,232
10May 1, 2024 14:2528,22781,107,34824,839,43902,363,392
11May 1, 2024 14:2528,235103,162,57524,846,42602,232,320
12May 1, 2024 14:2528,35780,098,82424,953,77902,240,512