Untitled
unknown
plain_text
a month ago
862 B
1
Indexable
Never
#include <iostream> //SIEUNTO using namespace std; typedef long long ll; int a[70] = {2, 3, 5, 7, 23, 29, 31, 37, 53, 59, 71, 73, 79, 233, 239, 293, 311, 313, 317, 373, 379, 593, 599, 719, 733, 739, 797, 2333, 2339, 2393, 2399, 2939, 3119, 3137, 3733, 3739, 3793, 3797, 5939, 7193, 7331, 7333, 7393, 23333, 23339, 23399, 23993, 29399, 31193, 31379, 37337, 37339, 37397, 59393, 59399, 71933, 73331, 73939, 233993, 239933, 293999, 373379, 373393, 593933, 593993, 719333, 739391, 739393, 739397, 739399}; string s[70]; int main(){ freopen("SIEUNTO.INP","r",stdin); freopen("SIEUNTO.OUT","w",stdout); for(int i = 0; i < 70; i++) s[i] = to_string(a[i]); short k; cin >> k; int i = 0; while(s[i].size() < k) ++i; for( ; i < 70; i++){ if(s[i].size() > k) break; cout << s[i] << " "; cnt++; } return 0; }
Leave a Comment