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 listNov 15, 2024 07:41E SequeiraE SequeiraScore: 1,982,524Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Nov 15, 2024 07:411,973,3781,760,196,1841,735,574,000999,0002,281,472
2Nov 15, 2024 07:411,977,3511,769,688,1851,740,069,00002,514,944
3Nov 15, 2024 07:411,977,4631,772,430,1111,739,168,000999,0002,514,944
4Nov 15, 2024 07:411,979,1911,768,816,1211,740,689,000999,0002,281,472
5Nov 15, 2024 07:411,982,5241,774,734,8331,743,622,000999,0002,269,184
6Nov 15, 2024 07:411,987,3681,782,185,1131,747,885,000999,0002,523,136
7Nov 15, 2024 07:411,992,7281,777,926,7921,752,602,000999,0002,281,472
8Nov 15, 2024 07:411,993,7441,779,872,3621,753,496,000999,0002,285,568
9Nov 15, 2024 07:412,001,9701,788,954,7981,759,736,0001,998,0002,523,136