Question 7

# Determine the number of positive integer 'n' where 1 $$\le\$$ n $$\le\$$ 100 and 'n' is not divisible by 2, 3 or 5.

Solution

The number of numbers divisible by 2 = 50
The number of numbers divisible by 3 = 33
The number of numbers divisible by 5 = 20
The number of numbers divisible by 2 and 3 = 16
The number of numbers divisible by 2 and 5 = 10
The number of numbers divisible by 3 and 5 = 6
The number of numbers divisible by 2, 3 and 5 = 3
The number of numbers divisible by 2, 3 or 5 = 50 + 33 + 20 - 16 - 10 - 6 + 3 =74
The number of numbers not divisible by 2, 3 or 5 = 100 - 74 = 26
{"ft_lang_label":"__label__en","ft_lang_prob":0.8469849,"math_prob":1.0000058,"size":634,"snap":"2022-40-2023-06","text_gpt3_token_len":217,"char_repetition_ratio":0.2968254,"word_repetition_ratio":0.24827586,"special_character_ratio":0.3895899,"punctuation_ratio":0.05109489,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":1.0000052,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-28T12:41:09Z\",\"WARC-Record-ID\":\"<urn:uuid:aa49bf0b-3491-47ae-95d2-d9b63a62e0a5>\",\"Content-Length\":\"98122\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:56048cb0-08d0-4218-9263-a0a125c84249>\",\"WARC-Concurrent-To\":\"<urn:uuid:2eb898a3-c75f-406b-afc8-de346e262f18>\",\"WARC-IP-Address\":\"174.138.120.144\",\"WARC-Target-URI\":\"https://cracku.in/7-determine-the-number-of-positive-integer-n-where-1-x-iift-5th-dec-2021-slot-1\",\"WARC-Payload-Digest\":\"sha1:RFBRXNUIXAG36JSJQ5EK6BAFEPWGFNUB\",\"WARC-Block-Digest\":\"sha1:PGRJURCVRTQU3WWXWRKY5NBOYNVWA7DD\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764499634.11_warc_CC-MAIN-20230128121809-20230128151809-00824.warc.gz\"}"}