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 listJul 30, 2024 13:30matsuoka-601matsuoka-601Score: 17,210Success
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Jul 30, 2024 13:3017,08133,128,08513,027,0002,004,0002,281,472
2Jul 30, 2024 13:3017,10632,603,81412,043,0003,010,0002,314,240
3Jul 30, 2024 13:3017,12332,096,09312,055,0003,013,0002,449,408
4Jul 30, 2024 13:3017,17240,107,05113,097,0002,014,0002,400,256
5Jul 30, 2024 13:3017,18234,870,69114,112,0001,008,0002,379,776
6Jul 30, 2024 13:3017,20829,720,25312,115,0003,028,0002,424,832
7Jul 30, 2024 13:3017,21030,947,65712,116,0003,029,0002,387,968
8Jul 30, 2024 13:3017,25131,233,66913,157,0002,024,0002,379,776
9Jul 30, 2024 13:3017,28232,695,84812,167,0003,041,0002,400,256
10Jul 30, 2024 13:3017,31984,796,67515,240,61702,371,584
11Jul 30, 2024 13:3017,33198,458,15215,251,25202,265,088
12Jul 30, 2024 13:3017,39085,985,21815,303,40202,211,840