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 17, 2025 21:03matsuoka-601matsuoka-601Score: 17,195Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jan 17, 2025 21:0317,01335,930,71912,975,0001,996,0002,400,256
2Jan 17, 2025 21:0317,12630,445,48112,057,0003,014,0002,281,472
3Jan 17, 2025 21:0317,14239,717,06814,080,0001,005,0002,392,064
4Jan 17, 2025 21:0317,16330,796,48913,090,0002,013,0002,428,928
5Jan 17, 2025 21:0317,16830,167,17613,094,0002,014,0002,478,080
6Jan 17, 2025 21:0317,18031,004,23314,111,0001,007,0002,383,872
7Jan 17, 2025 21:0317,19541,390,20912,106,0003,026,0002,519,040
8Jan 17, 2025 21:0317,20031,780,51312,109,0003,027,0002,379,776
9Jan 17, 2025 21:0317,20138,999,20712,110,0003,027,0002,281,472
10Jan 17, 2025 21:0317,20332,432,79813,121,0002,018,0002,420,736
11Jan 17, 2025 21:0317,23530,729,11412,134,0003,033,0002,277,376
12Jan 17, 2025 21:0317,24031,374,06213,149,0002,022,0002,416,640