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 listOct 6, 2023 07:56matsuoka-601matsuoka-601Error
Source Code

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

Challenge History

No challenges yet.

Run Statistics
#DateScoreWall TimeCPU UserCPU SystemMemoryError
1Oct 6, 2023 08:0100000Error: expected "51452488903925 ", got "51452488903744 "
2Oct 6, 2023 08:0118,42375,661,98716,212,51602,244,608
3Oct 6, 2023 07:5618,43389,972,09916,220,95602,256,896
4Oct 6, 2023 07:5618,51089,282,50216,288,39302,260,992
5Oct 6, 2023 08:0118,60966,586,16016,376,09002,260,992
6Oct 6, 2023 08:0118,61185,648,61516,377,32702,195,456
7Oct 6, 2023 07:5618,66379,105,42716,423,86402,256,896
8Oct 6, 2023 08:0018,67192,089,21316,430,10802,199,552
9Oct 6, 2023 08:0118,69378,244,03316,449,72702,228,224
10Oct 6, 2023 08:0018,69893,496,20516,454,22202,244,608
11Oct 6, 2023 08:0118,71455,120,25116,468,27202,232,320
12Oct 6, 2023 08:0118,71877,879,66316,471,44802,310,144
13Oct 6, 2023 08:0018,73194,937,80916,483,52002,297,856