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 16, 2024 17:08Ivan BessonovIvan BessonovScore: 39,611Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 16, 2024 17:0834,39492,561,04330,266,75002,273,280
2May 16, 2024 17:0834,46387,347,84130,327,65002,260,992
3May 16, 2024 17:0834,56085,120,24230,413,19602,256,896
4May 16, 2024 17:0839,35860,953,89033,617,0001,018,0002,289,664
5May 16, 2024 17:0839,44561,332,74633,692,0001,020,0002,289,664
6May 16, 2024 17:0839,51665,994,21034,774,00002,273,280
7May 16, 2024 17:0839,61162,032,10432,867,0001,991,0002,289,664
8May 16, 2024 17:0839,64062,493,54732,890,0001,993,0002,273,280
9May 16, 2024 17:0839,64963,646,80134,891,00002,289,664
10May 16, 2024 17:0839,65360,999,02534,895,00002,273,280
11May 16, 2024 17:0839,65561,269,34932,902,0001,994,0002,289,664
12May 16, 2024 17:0839,67866,137,38332,922,0001,995,0002,289,664