Apptica and Qt Sequences

0

0 votes
Medium
Problem

Apptica gathered N integers in an array A and another integer X. He loves Qt Sequences.

Let S contains M elements S1,S2,S3...SM and S is a Qt sequence, then it satisfies following property:

(d(Si)S2i)<X, where d(n) is the number of divisors of n.

He is determined to find out number of Qt subsequences in A. Unfortunately, he is very tired after staying awake for almost 24 hours continuosly, and asks you for your help.

 


Input:

First line contains two space separated integers N and X. Next line contains N space separated integers.


Output:

Print a single integer denoting number of Qt subsequences in array A.


Constraints:

1N45

1X1018

1Ai107

Time Limit: 2.5
Memory Limit: 256
Source Limit:
Editor Image

?