#P54. [KBC004F] Good 2

[KBC004F] Good 2

Source

This problem is adapted from Long Long OJ. All rights reserved.

Attention

There is a hard version of this problem:

The memory limit for this problem is 8 MB.

Problem Description

Define a function:

Good(N)=2NiNi\text{Good}(N)=2N-\sum_{i|N}i

That is, 2N2N minus the sum of all divisors of NN.

Little A wants to know the result of the following expression; please help him calculate it:

$$\text{Good}(l)+\text{Good}(l+1)+\ldots+\text{Good}(r)$$

The answer should be taken modulo 998244353998244353.

Input Format

A single line containing two positive integers ll and rr.

Output Format

A single line containing a non-negative integer representing the answer.

The answer should be taken modulo 998244353998244353.

Samples

1 3
4
1 2000
710989
1 50000000
10806582
114 514
44867

Sample 3 Explanation

The answer before taking the modulo is 443832427326971443832427326971.

Data Range

For 100%100\% of the data, 1lr5×1081\le l\le r\le 5\times10^8.