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 10:00Robert BurkeRobert BurkeScore: 21,917Success
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 10:0017,25275,642,64015,182,02402,236,416
2Oct 6, 2023 10:0017,34577,409,53715,263,45002,232,320
3Oct 6, 2023 10:0017,35064,533,71715,267,96102,224,128
4Oct 6, 2023 10:0021,80943,219,06617,172,0002,020,0002,400,256
5Oct 6, 2023 10:0021,82038,841,09917,181,0002,021,0002,494,464
6Oct 6, 2023 10:0021,88350,767,71318,244,0001,013,0002,404,352
7Oct 6, 2023 10:0021,91741,359,51318,272,0001,015,0002,281,472
8Oct 6, 2023 10:0021,96443,656,78118,311,0001,017,0002,396,160
9Oct 6, 2023 10:0021,96733,619,08918,314,0001,017,0002,400,256
10Oct 6, 2023 10:0021,97440,878,59718,320,0001,017,0002,400,256
11Oct 6, 2023 10:0022,15539,322,75019,496,00002,445,312
12Oct 6, 2023 10:0022,15839,564,58119,499,00002,392,064