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 8, 2024 15:35zielajzielajScore: 7,062,792Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Dec 8, 2024 15:357,010,1636,199,390,3206,167,944,000999,0002,281,472
2Dec 8, 2024 15:357,047,1256,230,271,0916,200,471,000999,0002,531,328
3Dec 8, 2024 15:357,049,4266,225,880,8996,201,496,0001,999,0002,510,848
4Dec 8, 2024 15:357,057,4166,235,057,2566,208,527,0001,999,0002,428,928
5Dec 8, 2024 15:357,062,7926,244,623,3406,214,258,000999,0002,269,184
6Dec 8, 2024 15:357,066,2316,241,624,4596,215,285,0002,998,0002,527,232
7Dec 8, 2024 15:357,068,6196,247,247,0186,219,386,000999,0002,437,120
8Dec 8, 2024 15:357,080,3836,262,530,9496,229,738,000999,0002,269,184
9Dec 8, 2024 15:357,086,9006,261,556,8796,236,472,00002,269,184