First number =1
Last number =100
Sum of integer 1 to 100 S=2100[101]=5050
numbers which are divisible by 3 are 3,6,9.................99 S1=233[3+99]=33×51=1683
numbers which are divisible by 5 are 5,10……….,100 S2=220[105]=1050
numbers which are divisible by 3 and 5 both are 15,30……..90 S3=26[15+90]=3(105)=315
Now sum of integers which are not divisible by 3 or 5 =S−S1−S2+S3=5050−1683−1050+315=2632