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 26, 2025 20:34Ian MckibbenIan MckibbenScore: 44,784Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 26, 2025 20:3344,57860,230,41538,224,0001,005,0002,437,120
2Jan 26, 2025 20:3344,62866,380,59139,273,00002,428,928
3Jan 26, 2025 20:3444,74364,334,15839,374,00002,269,184
4Jan 26, 2025 20:3344,75664,646,32139,385,00002,531,328
5Jan 26, 2025 20:3344,75865,070,79338,378,0001,009,0002,531,328
6Jan 26, 2025 20:3344,78167,733,28539,407,00002,428,928
7Jan 26, 2025 20:3344,78465,055,63638,400,0001,010,0002,531,328
8Jan 26, 2025 20:3444,84361,861,20338,451,0001,011,0002,433,024
9Jan 26, 2025 20:3344,85958,334,38539,476,00002,424,832
10Jan 26, 2025 20:3344,95662,091,83139,561,00002,433,024
11Jan 26, 2025 20:3344,96165,536,37338,552,0001,014,0002,531,328
12Jan 26, 2025 20:3444,97664,054,19339,579,00002,269,184