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 5, 2024 08:42Ivan BessonovIvan BessonovScore: 47,591Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1May 5, 2024 08:4247,38468,683,19040,681,0001,017,0002,289,664
2May 5, 2024 08:4247,39971,014,42940,694,0001,017,0002,289,664
3May 5, 2024 08:4247,58068,022,27339,877,0001,993,0002,289,664
4May 5, 2024 08:4247,58267,847,69239,879,0001,993,0002,289,664
5May 5, 2024 08:4247,58974,130,58139,884,0001,994,0002,265,088
6May 5, 2024 08:4247,59067,790,94939,885,0001,994,0002,289,664
7May 5, 2024 08:4247,59167,960,97639,886,0001,994,0002,269,184
8May 5, 2024 08:4247,60866,448,76940,898,000997,0002,289,664
9May 5, 2024 08:4247,68971,092,46539,968,0001,998,0002,269,184
10May 5, 2024 08:4247,739101,367,76342,010,73502,256,896
11May 5, 2024 08:4247,846113,887,85742,104,83602,256,896
12May 5, 2024 08:4247,938105,132,62742,185,55802,265,088